LanguageExt.Core

LanguageExt.Core Monads Alternative Value Monads Some

Some will almost certainly be deprecated in future releases. Please do not use it.

Contents

struct Some <A> Source #

Properties

property A Value Source #

property bool IsSome Source #

property bool IsNone Source #

Constructors

constructor Some (A value) Source #

constructor Some (IEnumerable<A> someValue) Source #

Used to facilitate serialisation

Methods

method Seq<A> ToSeq () Source #

method IEnumerable<A> AsEnumerable () Source #

method IEnumerator<A> GetEnumerator () Source #

method string ToString () Source #

method int GetHashCode () Source #

method bool Equals (Some<A> other) Source #

method bool Equals (object obj) 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 #

class SomeExt Source #

Extension method for Some T to help with the lack of covariance of generic parameters in structs (and therefore Some T)

Methods

method Some<T> ToSome <T> (this T value) Source #

Convert value to Some T. Helps with the lack of covariance of generic parameters in structs (and therefore Some T)

Parameters

type T

Value type

param value

Value

returns

Value wrapped in a Some T