Created
February 4, 2020 09:18
-
-
Save kos59125/4f2065965d93d79201b6bb9031263e06 to your computer and use it in GitHub Desktop.
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.Text | |
let append : string list -> string = | |
List.fold (fun (builder:StringBuilder) -> builder.Append) (StringBuilder()) | |
>> fun builder -> builder.ToString() | |
// aA | |
append ["a"; "A"] |> printfn "%s" | |
// aAbB | |
append ["b"; "B"] |> printfn "%s" | |
// aAbBcC | |
append ["c"; "C"] |> printfn "%s" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment