FSharpx.Extras


Nullable

Namespace: FSharpx

Functions and values

Function or valueDescription
( &? ) a b
Signature: a:Nullable<bool> -> b:Nullable<bool> -> Nullable<bool>

CompiledName: op_AmpQmark

( *? ) a b
Signature: a:Nullable<^?8971> -> b:Nullable<^?8972> -> Nullable<^?8973>
Type parameters: ^?8971, ^?8972, ^?8973

CompiledName: op_MultiplyQmark

( /? ) a b
Signature: a:Nullable<^?8975> -> b:Nullable<^?8976> -> Nullable<^?8977>
Type parameters: ^?8975, ^?8976, ^?8977

CompiledName: op_DivideQmark

( -? ) a b
Signature: a:Nullable<^?8967> -> b:Nullable<^?8968> -> Nullable<^?8969>
Type parameters: ^?8967, ^?8968, ^?8969

CompiledName: op_MinusQmark

( |? ) a b
Signature: a:Nullable<bool> -> b:Nullable<bool> -> Nullable<bool>

CompiledName: op_BarQmark

( +? ) a b
Signature: a:Nullable<^?8963> -> b:Nullable<^?8964> -> Nullable<^?8965>
Type parameters: ^?8963, ^?8964, ^?8965

CompiledName: op_PlusQmark

( <? ) a b
Signature: a:Nullable<'?8983> -> b:Nullable<'?8983> -> bool
Type parameters: '?8983

CompiledName: op_LessQmark

( <=? ) a b
Signature: a:Nullable<'?8985> -> b:Nullable<'?8985> -> bool
Type parameters: '?8985

CompiledName: op_LessEqualsQmark

( >? ) a b
Signature: a:Nullable<'?8979> -> b:Nullable<'?8979> -> bool
Type parameters: '?8979

CompiledName: op_GreaterQmark

( >=? ) a b
Signature: a:Nullable<'?8981> -> b:Nullable<'?8981> -> bool
Type parameters: '?8981

CompiledName: op_GreaterEqualsQmark

bind f x
Signature: f:('?8928 -> Nullable<'?8929>) -> x:Nullable<'?8928> -> Nullable<'?8929>
Type parameters: '?8928, '?8929

Monadic bind

count x
Signature: x:Nullable<'?8935> -> int
Type parameters: '?8935

Returns 1 if Nullable has value, otherwise 0

create x
Signature: x:'?8916 -> Nullable<'?8916>
Type parameters: '?8916
exists p x
Signature: p:(Nullable<'?8943> -> bool) -> x:Nullable<'?8943> -> bool
Type parameters: '?8943

Evaluates the equivalent of List.exists for a nullable.

fold f state x
Signature: f:('?8937 -> '?8938 -> '?8937) -> state:'?8937 -> x:Nullable<'?8938> -> '?8937
Type parameters: '?8937, '?8938

Evaluates the equivalent of List.fold for a nullable.

foldBack f x state
Signature: f:(Nullable<'?8940> -> '?8941 -> '?8941) -> x:Nullable<'?8940> -> state:'?8941 -> '?8941
Type parameters: '?8940, '?8941

Performs the equivalent of the List.foldBack operation on a nullable.

forall p x
Signature: p:(Nullable<'?8945> -> bool) -> x:Nullable<'?8945> -> bool
Type parameters: '?8945

Evaluates the equivalent of List.forall for a nullable.

get x
Signature: x:Nullable<'?8922> -> '?8922
Type parameters: '?8922

Gets the value associated with the Nullable. If no value, throws.

getOrDefault n v
Signature: n:Nullable<'?8918> -> v:'?8918 -> '?8918
Type parameters: '?8918

Gets the value associated with the nullable or the supplied default value.

getOrElse n v
Signature: n:Nullable<'T> -> v:Lazy<'T> -> 'T
Type parameters: 'T

Gets the value associated with the nullable or the supplied default value.

hasValue x
Signature: x:Nullable<'?8931> -> bool
Type parameters: '?8931

True if Nullable has value

isNull x
Signature: x:Nullable<'?8933> -> bool
Type parameters: '?8933

True if Nullable does not have value

iter f x
Signature: f:('?8947 -> unit) -> x:Nullable<'?8947> -> unit
Type parameters: '?8947

Executes a function for a nullable value.

lift2 f a b
Signature: f:('?8956 -> '?8957 -> '?8958) -> a:Nullable<'?8956> -> b:Nullable<'?8957> -> Nullable<'?8958>
Type parameters: '?8956, '?8957, '?8958

Promote a function to a monad/applicative, scanning the monadic/applicative arguments from left to right.

map f x
Signature: f:('?8949 -> '?8950) -> x:Nullable<'?8949> -> Nullable<'?8950>
Type parameters: '?8949, '?8950

Transforms a Nullable value by using a specified mapping function.

mapBool op a b
Signature: op:('?8960 -> '?8961 -> bool) -> a:Nullable<'?8960> -> b:Nullable<'?8961> -> bool
Type parameters: '?8960, '?8961
notn a
Signature: a:Nullable<bool> -> Nullable<bool>
ofOption
Signature: '?8924 option -> Nullable<'?8924>
Type parameters: '?8924

Converts option to nullable

toArray x
Signature: x:Nullable<'?8952> -> '?8952 []
Type parameters: '?8952

Convert the nullable to an array of length 0 or 1.

toList x
Signature: x:Nullable<'?8954> -> '?8954 list
Type parameters: '?8954

Convert the nullable to a list of length 0 or 1.

toOption
Signature: Nullable<'?8926> -> '?8926 option
Type parameters: '?8926

Converts nullable to option

Type extensions

Type extensionDescription
n
Signature: Nullable<Int32>

CompiledName: Int32.get_n

n
Signature: Nullable<Int32>

CompiledName: Int32.get_n

n
Signature: Nullable<Double>

CompiledName: Double.get_n

n
Signature: Nullable<Double>

CompiledName: Double.get_n

n
Signature: Nullable<Single>

CompiledName: Single.get_n

n
Signature: Nullable<Single>

CompiledName: Single.get_n

n
Signature: Nullable<Byte>

CompiledName: Byte.get_n

n
Signature: Nullable<Byte>

CompiledName: Byte.get_n

n
Signature: Nullable<Int64>

CompiledName: Int64.get_n

n
Signature: Nullable<Int64>

CompiledName: Int64.get_n

n
Signature: Nullable<Decimal>

CompiledName: Decimal.get_n

n
Signature: Nullable<Decimal>

CompiledName: Decimal.get_n

Active patterns

Active patternDescription
( |Null|Value| ) x
Signature: x:Nullable<'?8914> -> Choice<unit,'?8914>
Type parameters: '?8914

CompiledName: |Null|Value|

Fork me on GitHub