LanguageExt.Core

LanguageExt.Core DataTypes Unit

Contents

struct Unit Source #

A unit type is a type that allows only one value (and thus can hold no information)

Fields

Methods

method int GetHashCode () Source #

method bool Equals (object obj) Source #

method string ToString () Source #

method bool Equals (Unit other) Source #

method T Return <T> (T anything) Source #

Provide an alternative value to unit

Parameters

type T

Alternative value type

param anything

Alternative value

returns

Alternative value

method T Return <T> (Func<T> anything) Source #

Provide an alternative value to unit

Parameters

type T

Alternative value type

param anything

Alternative value

returns

Alternative value

method int CompareTo (Unit other) Source #

Always equal

Operators

operator == (Unit lhs, Unit rhs) Source #

operator != (Unit lhs, Unit rhs) Source #

operator > (Unit lhs, Unit rhs) Source #

operator >= (Unit lhs, Unit rhs) Source #

operator < (Unit lhs, Unit rhs) Source #

operator <= (Unit lhs, Unit rhs) Source #

operator + (Unit a, Unit b) Source #

class Prelude Source #

Properties

property Unit unit Source #

Unit constructor

Methods

method Unit ignore <A> (A anything) Source #

Takes any value, ignores it, returns a unit

Parameters

param anything

Value to ignore

returns

Unit