LanguageExt.Core

LanguageExt.Core Monads Alternative Monads Option Option-Shared

Contents

interface IOptional Source #

class SomeContext <A, B> Source #

Provides a fluent context when calling the Some(Func) method from a member of the Optional〈A〉 trait. Must call None(Func) or None(Value) on this context to complete the matching operation.

Parameters

type A

Bound optional value type

type B

The operation return value type

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 <A> Source #

Provides a fluent context when calling the Some(Action) method from Optional〈A〉 trait. Must call None(Action) or None(Value) on this context to complete the matching operation.

Parameters

type A

Bound optional value type

Methods

method Unit None (Action f) Source #

The None branch of the matching operation

Parameters

param noneHandler

None branch operation