Skip to content

Instantly share code, notes, and snippets.

@Heimdell
Last active October 13, 2015 09:57
Show Gist options
  • Save Heimdell/5b22d4122f8eeae9e02e to your computer and use it in GitHub Desktop.
Save Heimdell/5b22d4122f8eeae9e02e to your computer and use it in GitHub Desktop.
let getline return =
getchar -> c:
if equal c "\n" ?
return ""
else
getline -> s:
return (+ c s);
let putline string next =
split string
(-> c s:
putchar c,
putline s,
next)
(-> :
next);
let echo =
getline -> str:
putline str,
echo;
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment