2012-03-25

F# - Convert Sequence of Chars to String


  type System.String with
    static member ofSeq s = new String(s |> Seq.toArray)
    static member ofReversedSeq s = new String(s |> Seq.toArray |> Array.rev)

No comments:

Post a Comment

Sway - as a snap reaches alpha state