+4 votes
204 views
in Technology by (1.7k points)
Alright so here is my code:

defmodule Lol do
  def Ha do
    IO.puts "haha"
  end
end
Lol.Ha()

What I'm trying to do is to define a module Lol with function Ha in it. Function Ha should print "haha"

I'm using repl.it

And here is the error

** (SyntaxError) main.exs:9: syntax error before: '('
    (elixir) lib/code.ex:363: Code.require_file/2



1 Answer

0 votes
by (521k points)
The elixer is that potion in MCSM in Ivor's basement.



Related questions

+10 votes
2 answers 414 views
asked Nov 3, 2017 in Other Contests by meow
+2 votes
2 answers 35 views
+5 votes
1 answer 91 views
+1 vote
2 answers 203 views
+8 votes
6 answers 312 views
+13 votes
4 answers 366 views
asked Mar 17, 2013 in Technology by reptar (4.7k points)
+10 votes
1 answer 155 views
asked Oct 25, 2018 in Other by LunaLight (165k points)
+18 votes
3 answers 282 views
+16 votes
1 answer 299 views
asked Jan 12, 2017 in Today I Learned... by rae (110k points)
+9 votes
1 answer 252 views
+2 votes
2 answers 35 views
+3 votes
3 answers 96 views
+5 votes
2 answers 158 views
+4 votes
1 answer 116 views
asked Dec 19, 2021 in Other by Catlover (20.6k points)
+2 votes
2 answers 332 views
+3 votes
2 answers 329 views
+5 votes
2 answers 261 views

Recent Badges

Popular Question
Asked question received 100 views
- Wolflover123 -
Notable Question
Asked question received 50 views
- SunshineSwiftie -
Notable Question
Asked question received 50 views
- grim -
Popular Question
Asked question received 100 views
- ThatOneRainbowWorm -
Notable Question
Asked question received 50 views
- HorseLover -
...