You are viewing a single comment's thread. Return to all comments →
Here's a more functional way to read the inputs:
let n = Console.ReadLine() |> int Seq.initInfinite (fun _ -> Console.ReadLine()) |> Seq.takeWhile (String.IsNullOrWhiteSpace >> not) |> Seq.toList
Seems like cookies are disabled on this browser, please enable them to open this website
List Replication
You are viewing a single comment's thread. Return to all comments →
Here's a more functional way to read the inputs: