LanguageExt.Core

LanguageExt.Core Monads Alternative Value Monads Option Option-Shared

Contents

interface IOptional Source #

struct OptionNone Source #

A unit type that represents Option.None. This type can be implicitly converted to Option or OptionUnsafe.

Fields

Properties

property bool IsSome Source #

property bool IsNone Source #

Methods

method OptionNone Select (Func<Unit, Unit> f) Source #

method Option<C> SelectMany <B, C> (Func<Unit, Option<B>> bind, Func<Unit, B, C> project) Source #

method OptionNone Where (Func<Unit, bool> f) Source #

method int GetHashCode () Source #

method R MatchUntyped <R> (Func<object, R> Some, Func<R> None) Source #

method R MatchUntypedUnsafe <R> (Func<object, R> Some, Func<R> None) Source #

method Type GetUnderlyingType () Source #

method IEnumerator<Unit> GetEnumerator () Source #

method bool Equals (OptionNone other) Source #

method int CompareTo (OptionNone other) Source #

method Option<A> Bind <A> () Source #

Operators

operator true (OptionNone value) Source #

Truth operator

operator false (OptionNone value) Source #

Falsity operator

class OptionNoneExt Source #

Methods

method Option<C> SelectMany <A, C> (this Option<A> ma, Func<A, OptionNone> bind, Func<A, Unit, C> project) Source #

class SomeContext <OPT, OA, A, B> Source #

where OPT : struct, Optional<OA, A>

Methods

method B None (Func<B> noneHandler) Source #

The None branch of the matching operation

Parameters

param noneHandler

None branch operation

method B None (B noneValue) Source #

The None branch of the matching operation

Parameters

param noneHandler

None branch operation

class SomeUnsafeContext <OPT, OA, A, B> Source #

where OPT : struct, OptionalUnsafe<OA, A>

Methods

method B None (Func<B> noneHandler) Source #

The None branch of the matching operation

Parameters

param noneHandler

None branch operation

method B None (B noneValue) Source #

The None branch of the matching operation

Parameters

param noneHandler

None branch operation

class SomeUnitContext <OPT, OA, A> Source #

where OPT : struct, Optional<OA, A>

Methods

method Unit None (Action f) Source #

The None branch of the matching operation

Parameters

param noneHandler

None branch operation

class SomeUnsafeUnitContext <OPT, OA, A> Source #

where OPT : struct, OptionalUnsafe<OA, A>

Methods

method Unit None (Action f) Source #

The None branch of the matching operation

Parameters

param noneHandler

None branch operation