Arc Forumnew | comments | leaders | submitlogin
1 point by coconutrandom 5677 days ago | link | parent

:D thank you! I didn't know both end up with tail recursion and the 'nil was also bugging me

I've already installed Arc on my webhost. Now I'm picking my way through the webserver and am translating this to a web app.



1 point by shader 5677 days ago | link

The nil is the return value of the function. Since the last thing you did was an assignment, is 'nil. It only shows up like that on the repl, which prints both stdout and return values. It is true that printing a newline first would make it show up in the next line, but it doesn't really matter if you're making it into a web service since the nil won't be printed.

-----