- CollectionFormat
- EnumerableOptimal
- ConcatFast <A> (this IEnumerable<A> ma, IEnumerable<A> mb)
- ConcatFast <A> (this Iterable<A> ma, IEnumerable<A> mb)
- IL
- Ctor <R> ()
- Ctor <A, R> ()
- Ctor <A, B, R> ()
- Ctor <A, B, C, R> ()
- Ctor <A, B, C, D, R> ()
- Func1 <TYPE, R> (Type arg1, Func<MethodInfo, bool>? methodPred = null)
- Func1 <TYPE, A, R> (Func<MethodInfo, bool>? methodPred = null)
- Func2 <TYPE, A, B, R> (Func<MethodInfo, bool>? methodPred = null)
- Func3 <TYPE, A, B, C, R> (Func<MethodInfo, bool>? methodPred = null)
- Func4 <TYPE, A, B, C, D, R> (Func<MethodInfo, bool>? methodPred = null)
- GetHashCode <A> (bool includeBase)
- Equals <A> (bool includeBase)
- EqualsTyped <A> (bool includeBase)
- Compare <A> (bool includeBase)
- ToString <A> (bool includeBase)
- GetObjectData <A> (bool includeBase)
- SetObjectData <A> (bool includeBase)
- GetPropertyOrField <A, B> (string name)
- GetProperty <A, B> (string name)
- GetField <A, B> (string name)
- ILCapability
- LazyF <F, A> (Func<K<F, A>> runLazyF)
- LazyF
- lift <F, A> (K<F, A> fa)
- lift <F, A> (K<LazyF<F>, A> fa)
- lazy <F, A> (Func<K<F, A>> f)
- lazy <F, A> (Func<K<LazyF<F>, A>> f)
- lazy <F, A> (Func<LazyF<F, A>> f)
- As <F, A> (this K<LazyF<F>, A> ma)
- Run <F, A> (this K<LazyF<F>, A> ma)
- LazyF <F>
- Map <A, B> (Func<A, B> f, K<LazyF<F>, A> ma)
- Pure <A> (A value)
- Apply <A, B> (K<LazyF<F>, Func<A, B>> mf, K<LazyF<F>, A> ma)
- Combine <A> (K<LazyF<F>, A> lhs, K<LazyF<F>, A> rhs)
- Empty <A> ()
- SysInfo
- WaitAsync
- WaitAll <A, B> (ValueTask<A> va, ValueTask<B> vb)
- WaitAll <A, B, C> (ValueTask<A> va, ValueTask<B> vb, ValueTask<C> vc)
- WaitAll <A, B, C, D> (ValueTask<A> va, ValueTask<B> vb, ValueTask<C> vc, ValueTask<D> vd)
- WaitAll <A, B, C, D, E> (ValueTask<A> va, ValueTask<B> vb, ValueTask<C> vc, ValueTask<D> vd, ValueTask<E> ve)
- WaitAll <A, B, C, D, E, F> (ValueTask<A> va, ValueTask<B> vb, ValueTask<C> vc, ValueTask<D> vd, ValueTask<E> ve, ValueTask<F> vf)
- WaitOneAsync (this WaitHandle handle, int millisecondsTimeout, CancellationToken cancellationToken)
- WaitOneAsync (this WaitHandle handle, int millisecondsTimeout)
- WaitOneAsync (this WaitHandle handle, TimeSpan timeout, CancellationToken cancellationToken)
- WaitOneAsync (this WaitHandle handle, CancellationToken cancellationToken)
- WaitOneAsync (this WaitHandle handle)
class CollectionFormat Source #
field int MaxShortItems = 50 Source #
Application wide setting for the maximum number of items
shown in a call to the ToString
method of any LanguageExt
collection type.
class EnumerableOptimal Source #
method IEnumerable<A> ConcatFast <A> (this IEnumerable<A> ma, IEnumerable<A> mb) Source #
method Iterable<A> ConcatFast <A> (this Iterable<A> ma, IEnumerable<A> mb) Source #
method Func<R> Ctor <R> () Source #
Emits the IL to instantiate a type of R with a single argument to the constructor
method Func<A, R> Ctor <A, R> () Source #
Emits the IL to instantiate a type of R with a single argument to the constructor
method Func<A, B, R> Ctor <A, B, R> () Source #
Emits the IL to instantiate a type of R with two arguments to the constructor
method Func<A, B, C, R> Ctor <A, B, C, R> () Source #
Emits the IL to instantiate a type of R with three arguments to the constructor
method Func<A, B, C, D, R> Ctor <A, B, C, D, R> () Source #
Emits the IL to instantiate a type of R with four arguments to the constructor
method Option<Func<object, R>> Func1 <TYPE, R> (Type arg1, Func<MethodInfo, bool>? methodPred = null) Source #
Emits the IL to invoke a static method
method Option<Func<A, R>> Func1 <TYPE, A, R> (Func<MethodInfo, bool>? methodPred = null) Source #
Emits the IL to invoke a static method with one argument
method Option<Func<A, B, R>> Func2 <TYPE, A, B, R> (Func<MethodInfo, bool>? methodPred = null) Source #
Emits the IL to invoke a static method with two arguments
method Option<Func<A, B, C, R>> Func3 <TYPE, A, B, C, R> (Func<MethodInfo, bool>? methodPred = null) Source #
Emits the IL to invoke a static method with three arguments
method Option<Func<A, B, C, D, R>> Func4 <TYPE, A, B, C, D, R> (Func<MethodInfo, bool>? methodPred = null) Source #
Emits the IL to invoke a static method with four arguments
method Func<A, int> GetHashCode <A> (bool includeBase) Source #
Builds a function to provide a hash-code for a record type. the hash-code is built from the hash-codes of all the fields that make up the type.
You should cache the result of this method to reduce the work of building the IL
each time. Better still use the RecordType<A>
type to provide a cached version of these
results.
method Func<A, object, bool> Equals <A> (bool includeBase) Source #
Provides a function that compares two record type arguments (one of type A and one of
object) for structural equality, this first makes sure that the Object
argument is of
type A and then compares the fields from each argument for equality and returns true if
all are equal.
You should cache the result of this method to reduce the work of building the IL
each time. Better still use the RecordType<A>
type to provide a cached version of these
results.
method Func<A, A, bool> EqualsTyped <A> (bool includeBase) Source #
Provides a function that compares two record type arguments for structural equality, this first compares the fields from each argument for equality and returns true if all are equal.
You should cache the result of this method to reduce the work of building the IL
each time. Better still use the RecordType<A>
type to provide a cached version of these
results.
method Func<A, A, int> Compare <A> (bool includeBase) Source #
Provides a function that compares two record type arguments for structural equality, this compares the fields from each argument for equality and returns 0 if all are equal, -1 if X is less than Y, and 1 if X is greater than Y.
You should cache the result of this method to reduce the work of building the IL
each time. Better still use the RecordType<A>
type to provide a cached version of these
results.
method Action<A, SerializationInfo> GetObjectData <A> (bool includeBase) Source #
method Action<A, SerializationInfo> SetObjectData <A> (bool includeBase) Source #
method Func<A, B>? GetPropertyOrField <A, B> (string name) Source #
method Func<A, B>? GetProperty <A, B> (string name) Source #
record LazyF <F, A> (Func<K<F, A>> runLazyF) Source #
Makes K<F, A>
lazy
This is more of a utility type right now, so it hasn't been fleshed out like other Applicatives
LazyF module
LazyF trait implementations
System information helper
property int ProcessorCount Source #
Cached number of processors in the machine
property int DefaultAsyncSequenceParallelism Source #
When working with an IEnumerable of Tasks or Seq of Tasks, this setting is used as the default number of task items streamed at any one time. This reduces pressure on the system when working with large lazy streams of tasks.
Each method that uses it has an override that allows for per-usage settings.
The default value is max(1, Environment.ProcessorCount / 2)
method ValueTask<(A A, B B, C C)> WaitAll <A, B, C> (ValueTask<A> va, ValueTask<B> vb, ValueTask<C> vc) Source #
method ValueTask<(A A, B B, C C, D D)> WaitAll <A, B, C, D> (ValueTask<A> va, ValueTask<B> vb, ValueTask<C> vc, ValueTask<D> vd) Source #
method ValueTask<(A A, B B, C C, D D, E E)> WaitAll <A, B, C, D, E> (ValueTask<A> va, ValueTask<B> vb, ValueTask<C> vc, ValueTask<D> vd, ValueTask<E> ve) Source #
method ValueTask<(A A, B B, C C, D D, E E, F F)> WaitAll <A, B, C, D, E, F> (ValueTask<A> va, ValueTask<B> vb, ValueTask<C> vc, ValueTask<D> vd, ValueTask<E> ve, ValueTask<F> vf) Source #
method Task<bool> WaitOneAsync (this WaitHandle handle, int millisecondsTimeout, CancellationToken cancellationToken) Source #
method Task<bool> WaitOneAsync (this WaitHandle handle, int millisecondsTimeout) Source #
method Task<bool> WaitOneAsync (this WaitHandle handle, TimeSpan timeout, CancellationToken cancellationToken) Source #
method Task<bool> WaitOneAsync (this WaitHandle handle, CancellationToken cancellationToken) Source #
method Task<bool> WaitOneAsync (this WaitHandle handle) Source #