You are viewing a single comment's thread. Return to all comments →
open System; let n = Console.ReadLine () |> int let rec read arr = match Console.ReadLine () with | x when String.IsNullOrEmpty x -> arr | x -> x :: arr |> read read [] |> List.rev |> List.collect (fun x -> List.replicate n x) |> Seq.iter (fun x -> printfn "%s" x)
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 →