Table of contents
Collapse the table of content
Expand the table of content

Option.filter<'T> Function (F#)

Eriawan Kusumawardhono|Last Updated: 8/18/2017

Invokes a function on an optional value that itself yields an option.

Namespace/Module Path: Microsoft.FSharp.Core.Option

Assembly: FSharp.Core (in FSharp.Core.dll)


// Signature:
filter : ('T -> bool) -> option:'T option -> 'T option

// Usage:
filter predicate option


predicate Type: 'T ->bool

A function that evaluates whether the value contained in the option should remain, or be filtered out.

option Type: 'Toption

The input option.


Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 4.0, Portable

See Also

Core.Option Module (F#)

Microsoft.FSharp.Core Namespace (F#)

© 2020 Microsoft