FSharpx.Extras


FSharpOption

Namespace: FSharpx

Static members

Static memberDescription
Aggregate(o, state, f)
Signature: (o:'?7288 option * state:'?7289 * f:Func<'?7289,'?7288,'?7289>) -> '?7289
Type parameters: '?7288, '?7289

Evaluates the equivalent of for an option

Do(o, f)
Signature: (o:'?7261 option * f:Action<'?7261>) -> unit
Type parameters: '?7261
GetOrDefault(o)
Signature: o:Option<'?7269> -> '?7269
Type parameters: '?7269
GetOrElse(o, other)
Signature: (o:'?7267 option * other:Func<'?7267>) -> '?7267
Type parameters: '?7267
GetOrElse(o, other)
Signature: (o:'?7265 option * other:'?7265) -> '?7265
Type parameters: '?7265
HasValue(o)
Signature: (o:'?7243 option) -> bool
Type parameters: '?7243
Match(o, ifSome, ifNone)
Signature: (o:'?7259 option * ifSome:Action<'?7259> * ifNone:Action) -> unit
Type parameters: '?7259
Match(o, ifSome, ifNone)
Signature: (o:'?7256 option * ifSome:Func<'?7256,'?7257> * ifNone:'?7257) -> '?7257
Type parameters: '?7256, '?7257
Match(o, ifSome, ifNone)
Signature: (o:'?7253 option * ifSome:Func<'?7253,'?7254> * ifNone:Func<'?7254>) -> '?7254
Type parameters: '?7253, '?7254
OrElse(o, other)
Signature: (o:'?7263 option * other:'?7263 option) -> '?7263 option
Type parameters: '?7263

Gets the option if Some x, otherwise the supplied default value.

ParseByte(s, style, provider)
Signature: (s:string * style:NumberStyles * provider:IFormatProvider) -> byte option
ParseByte(s)
Signature: s:string -> byte option
ParseDateTime(s, style, provider)
Signature: (s:string * style:DateTimeStyles * provider:IFormatProvider) -> DateTime option
ParseDateTime(s)
Signature: s:string -> DateTime option
ParseDateTimeOffset(s, style, provider)
Signature: (s:string * style:DateTimeStyles * provider:IFormatProvider) -> DateTimeOffset option
ParseDateTimeOffset(s)
Signature: s:string -> DateTimeOffset option
ParseDecimal(s, style, provider)
Signature: (s:string * style:NumberStyles * provider:IFormatProvider) -> decimal option
ParseDecimal(s)
Signature: s:string -> decimal option
ParseDouble(s, style, provider)
Signature: (s:string * style:NumberStyles * provider:IFormatProvider) -> float option
ParseDouble(s)
Signature: s:string -> float option
ParseFloat(s, style, provider)
Signature: (s:string * style:NumberStyles * provider:IFormatProvider) -> float32 option
ParseFloat(s)
Signature: s:string -> float32 option
ParseInt(s, style, provider)
Signature: (s:string * style:NumberStyles * provider:IFormatProvider) -> int option
ParseInt(s)
Signature: s:string -> int option
ParseInt16(s, style, provider)
Signature: (s:string * style:NumberStyles * provider:IFormatProvider) -> int16 option
ParseInt16(s)
Signature: s:string -> int16 option
ParseInt64(s, style, provider)
Signature: (s:string * style:NumberStyles * provider:IFormatProvider) -> int64 option
ParseInt64(s)
Signature: s:string -> int64 option
Select(o, f)
Signature: (o:'?7278 option * f:Func<'?7278,'?7279>) -> '?7279 option
Type parameters: '?7278, '?7279

Transforms an option value by using a specified mapping function

SelectMany(o, f, mapper)
Signature: (o:'?7284 option * f:Func<'?7284,'?7285 option> * mapper:Func<'?7284,'?7285,'?7286>) -> '?7286 option
Type parameters: '?7284, '?7285, '?7286

Invokes a function on an optional value that itself yields an option, and then applies a mapping function

SelectMany(o, f)
Signature: (o:'?7281 option * f:Func<'?7281,'?7282 option>) -> '?7282 option
Type parameters: '?7281, '?7282

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

Sequence(o)
Signature: (o:'?7293 option list) -> '?7293 list option
Type parameters: '?7293
Some(a)
Signature: a:'?7251 -> '?7251 option
Type parameters: '?7251
SomeUnit
Signature: unit option

CompiledName: get_SomeUnit

ToArray(o)
Signature: (o:'?7276 option) -> '?7276 []
Type parameters: '?7276

Converts the option to an array of length 0 or 1

ToFSharpChoice(o, other)
Signature: (o:'?7271 option * other:'?7272) -> Choice<'?7271,'?7272>
Type parameters: '?7271, '?7272
ToFSharpList(o)
Signature: (o:'?7274 option) -> '?7274 list
Type parameters: '?7274

Converts the option to a list of length 0 or 1

ToFSharpOption(v)
Signature: v:'?7249 -> '?7249 option
Type parameters: '?7249
ToFSharpOption(n)
Signature: n:Nullable<'?7247> -> '?7247 option
Type parameters: '?7247
ToNullable(o)
Signature: (o:'?7245 option) -> Nullable<'?7245>
Type parameters: '?7245
Where(o, pred)
Signature: (o:'?7291 option * pred:Predicate<'?7291>) -> '?7291 option
Type parameters: '?7291

Applies a predicate to the option. If the predicate returns true, returns Some x, otherwise None.

Fork me on GitHub