Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Input-loop/F-Sharp/input-loop.fs
Normal file
5
Task/Input-loop/F-Sharp/input-loop.fs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
let lines_of_file file =
|
||||
seq { use stream = System.IO.File.OpenRead file
|
||||
use reader = new System.IO.StreamReader(stream)
|
||||
while not reader.EndOfStream do
|
||||
yield reader.ReadLine() }
|
||||
Loading…
Add table
Add a link
Reference in a new issue