Created
September 2, 2016 14:54
-
-
Save nestalk/a11d1c480226e9dfec4b01dfacb03f56 to your computer and use it in GitHub Desktop.
Read input for hackerrank
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
open System | |
let rec readInput lines = | |
match Console.ReadLine() with | |
| null -> List.rev lines | |
| "" -> List.rev lines | |
| s -> readInput ((int s)::lines) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment