Last active
November 6, 2017 13:31
-
-
Save deque-blog/a6d6259785008d2ce738f9e4c50d9451 to your computer and use it in GitHub Desktop.
This file contains 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
-- Read a line and return it | |
ReadLine (\x => Pure x) | |
-- Print a line "Hello" and return 5 | |
WriteLine "Hello" (Pure 5) | |
-- Read a line and print it twice, and return 5 | |
ReadLine (\x => WriteLine x (WriteLine x (Pure 5))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment