List.partition<'T> Function (F#)
Splits the collection into two collections, containing the elements for which the given predicate returns true and false respectively.
Namespace/Module Path: Microsoft.FSharp.Collections.List
Assembly: FSharp.Core (in FSharp.Core.dll)
A list containing the elements for which the predicate evaluated to false and a list containing the elements for which the predicate evaluated to true.
This function is named Partition in compiled assemblies. If you are accessing the function from a language other than F#, or through reflection, use this name.
The following code example shows how to use List.partition.
Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
F# Core Library Versions
Supported in: 2.0, 4.0, Portable