Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
Smooth.Algebraics.Option Class Reference

Extension methods for Option<T>. More...

Static Public Member Functions

static Option< T > Create< T > (T value)
 Returns None if value == null; otherwise, Some(value). More...
 
static Option< T > Flatten< T > (this Option< Option< T >> option)
 Flattens a nested option. More...
 
static Option< T > None< T > (T value)
 Returns None. More...
 
static Option< T > Some< T > (T value)
 Returns Some(value), regardless of whether or not value == null. More...
 
static Option< T > ToNone< T > (this T value)
 Returns None. More...
 
static Option< T > ToOption< T > (this T value)
 Returns None if value == null; otherwise, Some(value). More...
 
static Option< T > ToSome< T > (this T value)
 Returns Some(value), regardless of whether or not value == null. More...
 

Detailed Description

Extension methods for Option<T>.

Member Function Documentation

static Option<T> Smooth.Algebraics.Option.Create< 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.None< T > ( value)
inlinestatic

Returns None.

static Option<T> Smooth.Algebraics.Option.Some< 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

Returns None.

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: