Merge pull request #104 from dubek/hashmap-equality-test
[jackhill/mal.git] / julia / readline_mod.jl
1 module readline_mod
2
3 export do_readline
4
5 function do_readline(prompt)
6 print(prompt)
7 flush(STDOUT)
8 line = readline(STDIN)
9 if line == ""
10 return nothing
11 end
12 chomp(line)
13 end
14
15 end