The functions of FlatList return value options and struct tuples, which need no allocation:
|
Code that works with option and reference tuples does not have to convert these results.
Open the FSharp.Collections.Immutable.Option namespace after FSharp.Collections.Immutable. The functions that take or
return a value option then take or return an option:
|
Open the FSharp.Collections.Immutable.Tuple namespace after FSharp.Collections.Immutable. The functions that return
struct tuples then return reference tuples:
|
The two namespaces hold only the functions whose types differ. Every other function of FlatList stays the one of
FSharp.Collections.Immutable, so the open changes these types and nothing else. Both namespaces can be open at the
same time.