Some<A> Struct

DECLARATION
[Serializable]
public struct Some<A> : IEnumerable<A>,
IOptional
NAMESPACE
LanguageExt

Constructors

Some(A)
PARAMETERS
value
A
DECLARATION
public ctor Some(A value)
Some(IEnumerable<A>)
SUMMARY

Used to facilitate serialisation

PARAMETERS
someValue
IEnumerable<A>
DECLARATION
public ctor Some(IEnumerable<A> someValue)

Properties

IsNone
DECLARATION
[Pure]
public bool IsNone { get; }
RETURNS
bool
IsSome
DECLARATION
[Pure]
public bool IsSome { get; }
RETURNS
bool
Value
DECLARATION
[Pure]
public A Value { get; }
RETURNS
A

Methods

AsEnumerable()
DECLARATION
[Pure]
public Seq<A> AsEnumerable()
RETURNS
Seq<A>
Equals(object)
PARAMETERS
obj
object
DECLARATION
[Pure]
public override bool Equals(object obj)
RETURNS
bool
GetEnumerator()
DECLARATION
[Pure]
public IEnumerator<A> GetEnumerator()
RETURNS
IEnumerator<A>
GetHashCode()
DECLARATION
[Pure]
public override int GetHashCode()
RETURNS
int
GetUnderlyingType()
DECLARATION
[Pure]
public Type GetUnderlyingType()
RETURNS
Type
MatchUntyped<R>(Func<object, R>, Func<R>)
PARAMETERS
Some
Func<object, R>
None
Func<R>
DECLARATION
[Pure]
public R MatchUntyped<R>(Func<object, R> Some, Func<R> None)
RETURNS
R
ToSeq()
DECLARATION
[Pure]
public Seq<A> ToSeq()
RETURNS
Seq<A>
ToString()
DECLARATION
[Pure]
public override string ToString()
RETURNS
string