Last active
October 13, 2015 09:57
-
-
Save Heimdell/5b22d4122f8eeae9e02e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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