you can use
Seq.toList : IEnumerable<'a> -> list<'a>
to convert any IEnumerable<'a> seq to an F # list. Note that F # lists are immutable; if you want to work with a mutable list, you donβt have to do anything, but you wonβt be able to use pattern matching. Or rather, you can define active templates for System.Collections.Generic.List<'a> ; it's just a bad idea.
Alexey romanov
source share