Deedle


TryValue

Represents a value or an exception. This type is used by functions such as Series.tryMap and Frame.tryMap to capture the result of a lambda function, which may be either a value or an exception. The type is a discriminated union, so it can be processed using F# pattern matching, or using Value, HasValue and Exception properties

Instance members

Instance memberDescription
tryValue.Exception
Signature:exn

Returns the exception captured by this value. When HasValue = true, accessing the property throws InvalidOperationException.

tryValue.HasValue
Signature:bool

Returns true when the TryValue<T> object represents a successfully calculated value

tryValue.Value
Signature:'T

Returns the value of TryValue<T> when the value is present; otherwise, throws an exception that was captured

Fork me on GitHub