Created
January 18, 2018 10:09
-
-
Save dyigitpolat/6e33eda60e1c70d2f938e1cb541ccdda 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
| read_stdin_to_list() -> | |
| case io:fread("","~d") of | |
| {ok,[A]} -> [ A | read_stdin_to_list() ]; | |
| _ -> [] | |
| end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment