Extension methods for Option<T>.
More...
Extension methods for Option<T>.
static Option<T> Smooth.Algebraics.Option.Create< T > |
( |
T |
value | ) |
|
|
inlinestatic |
Returns None if value == null; otherwise, Some(value).
static Option<T> Smooth.Algebraics.Option.Flatten< T > |
( |
this Option< Option< T >> |
option | ) |
|
|
inlinestatic |
Flattens a nested option.
static Option<T> Smooth.Algebraics.Option.Some< T > |
( |
T |
value | ) |
|
|
inlinestatic |
Returns Some(value), regardless of whether or not value == null.
static Option<T> Smooth.Algebraics.Option.ToNone< T > |
( |
this T |
value | ) |
|
|
inlinestatic |
static Option<T> Smooth.Algebraics.Option.ToOption< T > |
( |
this T |
value | ) |
|
|
inlinestatic |
Returns None if value == null; otherwise, Some(value).
static Option<T> Smooth.Algebraics.Option.ToSome< T > |
( |
this T |
value | ) |
|
|
inlinestatic |
Returns Some(value), regardless of whether or not value == null.
The documentation for this class was generated from the following file:
- KSP/Assets/Scripts/Util Scripts/SmoothFoundations/Algebraics/Option.cs