List.filter<'T> Function (F#)
Returns a new collection containing only the elements of the collection for which the given predicate returns true.
Namespace/Module Path: Microsoft.FSharp.Collections.List
Assembly: FSharp.Core (in FSharp.Core.dll)
A list containing only the elements that satisfy the predicate.
This function is named Filter in compiled assembly. If you are accessing the function from a language other than F#, or through reflection, use this name.
The following example demonstrates the use of List.filter.
The following example shows another typical use for List.filter.
Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
F# Core Library Versions
Supported in: 2.0, 4.0, Portable