+4 votes
207 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 (529k points)
The elixer is that potion in MCSM in Ivor's basement.



Related questions

+10 votes
2 answers 417 views
asked Nov 3, 2017 in Other Contests by meow
+2 votes
2 answers 38 views
+5 votes
1 answer 93 views
+1 vote
2 answers 204 views
+8 votes
6 answers 313 views
+13 votes
4 answers 373 views
asked Mar 17, 2013 in Technology by reptar (4.7k points)
0 votes
0 answers 17 views
+10 votes
1 answer 157 views
asked Oct 25, 2018 in Other by LunaLight (165k points)
+18 votes
3 answers 288 views
+16 votes
1 answer 301 views
asked Jan 12, 2017 in Today I Learned... by rae (110k points)
+9 votes
1 answer 253 views
+2 votes
2 answers 38 views
+3 votes
3 answers 97 views
+5 votes
2 answers 159 views
+4 votes
1 answer 117 views
asked Dec 19, 2021 in Other by Catlover (20.6k points)
+2 votes
2 answers 336 views

Recent Badges

Nice Answer
Answer received +2 upvote
- -Minecraftnerd- -
Nice Question
Question received +2 upvote
- one?zero -
Nice Question
Question received +2 upvote
- one?zero -
Nice Question
Question received +2 upvote
- one?zero -
Good Question
Question received +3 upvote
- one?zero -
...