Tuple.toList<'a>
open Microsoft.FSharp.Reflection
let toList<'a> x = FSharpValue.GetTupleFields(x) |> Seq.cast<'a> |> List.ofSeq
Written by Casey Kramer
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#F#
Authors
Related Tags
#f#
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#