RosettaCodeData/Task/Copy-stdin-to-stdout/F-Sharp/copy-stdin-to-stdout.fs
2023-07-01 13:44:08 -04:00

4 lines
145 B
FSharp

let copy()=let n,g=stdin,stdout
let rec fN()=match n.ReadLine() with "EOF"->g.Write "" |i->g.WriteLine i; fN()
fN()
copy()