LanguageExt.Core

LanguageExt.Core Prelude Obsolete

Contents

class Prelude Source #

Methods

method R with <T1, T2, R> (Tuple<T1, T2> self, Func<T1, T2, R> func) Source #

method R with <T1, T2, T3, R> (Tuple<T1, T2, T3> self, Func<T1, T2, T3, R> func) Source #

method R with <T1, T2, T3, T4, R> (Tuple<T1, T2, T3, T4> self, Func<T1, T2, T3, T4, R> func) Source #

method R with <T1, T2, T3, T4, T5, R> (Tuple<T1, T2, T3, T4, T5> self, Func<T1, T2, T3, T4, T5, R> func) Source #

method R with <T1, T2, T3, T4, T5, T6, R> (Tuple<T1, T2, T3, T4, T5, T6> self, Func<T1, T2, T3, T4, T5, T6, R> func) Source #

method R with <T1, T2, T3, T4, T5, T6, T7, R> (Tuple<T1, T2, T3, T4, T5, T6, T7> self, Func<T1, T2, T3, T4, T5, T6, T7, R> func) Source #

method Unit with <T1, T2> (Tuple<T1, T2> self, Action<T1, T2> func) Source #

method Unit with <T1, T2, T3> (Tuple<T1, T2, T3> self, Action<T1, T2, T3> func) Source #

method Unit with <T1, T2, T3, T4> (Tuple<T1, T2, T3, T4> self, Action<T1, T2, T3, T4> func) Source #

method Unit with <T1, T2, T3, T4, T5> (Tuple<T1, T2, T3, T4, T5> self, Action<T1, T2, T3, T4, T5> func) Source #

method Unit with <T1, T2, T3, T4, T5, T6> (Tuple<T1, T2, T3, T4, T5, T6> self, Action<T1, T2, T3, T4, T5, T6> func) Source #

method Unit with <T1, T2, T3, T4, T5, T6, T7> (Tuple<T1, T2, T3, T4, T5, T6, T7> self, Action<T1, T2, T3, T4, T5, T6, T7> func) Source #

method Tuple<T1, T2> tuple <T1, T2> (T1 item1, T2 item2) Source #

method Tuple<T1, T2, T3> tuple <T1, T2, T3> (T1 item1, T2 item2, T3 item3) Source #

method Tuple<T1, T2, T3, T4> tuple <T1, T2, T3, T4> (T1 item1, T2 item2, T3 item3, T4 item4) Source #

method Tuple<T1, T2, T3, T4, T5> tuple <T1, T2, T3, T4, T5> (T1 item1, T2 item2, T3 item3, T4 item4, T5 item5) Source #

method Tuple<T1, T2, T3, T4, T5, T6> tuple <T1, T2, T3, T4, T5, T6> (T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6) Source #

method Tuple<T1, T2, T3, T4, T5, T6, T7> tuple <T1, T2, T3, T4, T5, T6, T7> (T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7) Source #

method IQueryable<T> query <T> (params T[] items) Source #

Create a queryable

method Map<K, V> map <K, V> () Source #

Create an immutable map

method Map<K, V> map <K, V> (params Tuple<K, V>[] items) Source #

Create an immutable map

method Map<K, V> map <K, V> (params KeyValuePair<K, V>[] items) Source #

Create an immutable map

method Lst<T> list <T> () Source #

Create an immutable list

method Lst<T> list <T> (params T[] items) Source #

Create an immutable list

method T[] array <T> () Source #

Create an immutable array

method T[] array <T> (T item) Source #

Create an immutable array

method T[] array <T> (params T[] items) Source #

Create an immutable array

method Set<T> set <T> () Source #

Create an immutable set

method Set<T> set <T> (T item) Source #

Create an immutable set

method Set<T> set <T> (params T[] items) Source #

Create an immutable set

method Stck<T> stack <T> () Source #

Create an immutable stack

method Lst<T> empty <T> () Source #

Create an empty IEnumerable T

method IEnumerable<T> cons <T> (T head, IEnumerable<T> tail) Source #

Construct a list from head and tail head becomes the first item in the list Is lazy

method Lst<T> cons <T> (T head, Lst<T> tail) Source #

Construct a list from head and tail

method R with <T1, T2, R> (T1 value1, T2 value2, Func<T1, T2, R> project) Source #

Projects values into a lambda Useful when one needs to declare a local variable which breaks your expression. This allows you to keep the expression going.

method R with <T1, T2, T3, R> (T1 value1, T2 value2, T3 value3, Func<T1, T2, T3, R> project) Source #

Projects values into a lambda Useful when one needs to declare a local variable which breaks your expression. This allows you to keep the expression going.

method Lst<R> toList <L, R> (Either<L, R> either) Source #

Project the Either into a Lst R

Parameters

type L

Left

type R

Right

param either

Either to project

returns

If the Either is in a Right state, a Lst of R with one item. A zero length Lst R otherwise

method Arr<R> toArray <L, R> (Either<L, R> either) Source #

Project the Either into an ImmutableArray R

Parameters

type L

Left

type R

Right

param either

Either to project

returns

If the Either is in a Right state, a ImmutableArray of R with one item. A zero length ImmutableArray of R otherwise

method R With <T1, T2, R> (this Tuple<T1, T2> self, Func<T1, T2, R> func) Source #

method R With <T1, T2, T3, R> (this Tuple<T1, T2, T3> self, Func<T1, T2, T3, R> func) Source #

method R With <T1, T2, T3, T4, R> (this Tuple<T1, T2, T3, T4> self, Func<T1, T2, T3, T4, R> func) Source #

method R With <T1, T2, T3, T4, T5, R> (this Tuple<T1, T2, T3, T4, T5> self, Func<T1, T2, T3, T4, T5, R> func) Source #

method R With <T1, T2, T3, T4, T5, T6, R> (this Tuple<T1, T2, T3, T4, T5, T6> self, Func<T1, T2, T3, T4, T5, T6, R> func) Source #

method R With <T1, T2, T3, T4, T5, T6, T7, R> (this Tuple<T1, T2, T3, T4, T5, T6, T7> self, Func<T1, T2, T3, T4, T5, T6, T7, R> func) Source #

method Unit With <T1, T2> (this Tuple<T1, T2> self, Action<T1, T2> func) Source #

method Unit With <T1, T2, T3> (this Tuple<T1, T2, T3> self, Action<T1, T2, T3> func) Source #

method Unit With <T1, T2, T3, T4> (this Tuple<T1, T2, T3, T4> self, Action<T1, T2, T3, T4> func) Source #

method Unit With <T1, T2, T3, T4, T5> (this Tuple<T1, T2, T3, T4, T5> self, Action<T1, T2, T3, T4, T5> func) Source #

method Unit With <T1, T2, T3, T4, T5, T6> (this Tuple<T1, T2, T3, T4, T5, T6> self, Action<T1, T2, T3, T4, T5, T6> func) Source #

method Unit With <T1, T2, T3, T4, T5, T6, T7> (this Tuple<T1, T2, T3, T4, T5, T6, T7> self, Action<T1, T2, T3, T4, T5, T6, T7> func) Source #

method Task<A> asFailedTask <A> (Exception ex) Source #

method Task<A> asTask <A> (A self) Source #

Convert a value to a Task that completes immediately

method IQueryable<R> toQuery <L, R> (Either<L, R> either) Source #

Project the Either into an IQueryable of R

Parameters

type L

Left

type R

Right

param either

Either to project

returns

If the Either is in a Right state, an IQueryable of R with one item. A zero length IQueryable R otherwise

method Seq<A> SeqOne <A> (A value) Source #

Construct a sequence from any value T : [x] null : []

method R sync <R> (Func<R> op, Isolation isolation = Isolation.Snapshot) Source #

Run the op within a new transaction If a transaction is already running, then this becomes part of the parent transaction

method Eff<R> sync <R> (Eff<R> op, Isolation isolation = Isolation.Snapshot) Source #

Run the op within a new transaction If a transaction is already running, then this becomes part of the parent transaction

method Eff<RT, R> sync <RT, R> (Eff<RT, R> op, Isolation isolation = Isolation.Snapshot) Source #

where RT : struct

Run the op within a new transaction If a transaction is already running, then this becomes part of the parent transaction

method Aff<R> sync <R> (Aff<R> op, Isolation isolation = Isolation.Snapshot) Source #

Run the op within a new transaction If a transaction is already running, then this becomes part of the parent transaction

method Aff<RT, R> sync <RT, R> (Aff<RT, R> op, Isolation isolation = Isolation.Snapshot) Source #

where RT : struct, HasCancel<RT>

Run the op within a new transaction If a transaction is already running, then this becomes part of the parent transaction

method ValueTask<R> sync <R> (Func<ValueTask<R>> op, Isolation isolation = Isolation.Snapshot) Source #

Run the op within a new transaction If a transaction is already running, then this becomes part of the parent transaction

method ValueTask<Unit> sync (Func<ValueTask> op, Isolation isolation = Isolation.Snapshot) Source #

Run the op within a new transaction If a transaction is already running, then this becomes part of the parent transaction

method Task<R> sync <R> (Func<Task<R>> op, Isolation isolation = Isolation.Snapshot) Source #

Run the op within a new transaction If a transaction is already running, then this becomes part of the parent transaction

method Task<Unit> sync (Func<Task> op, Isolation isolation = Isolation.Snapshot) Source #

Run the op within a new transaction If a transaction is already running, then this becomes part of the parent transaction

method Unit sync (Action op, Isolation isolation = Isolation.Snapshot) Source #

Run the op within a new transaction If a transaction is already running, then this becomes part of the parent transaction