- ActionObservable <T>
- ComposeExtensions
- BackCompose <A, B, C> (this Func<B, C> g, Func<A, B> f)
- BackCompose <A, B> (this Func<A, B> g, Func<A> f)
- BackCompose <A, B> (this Action<B> g, Func<A, B> f)
- BackCompose <A> (this Action<A> g, Func<A> f)
- Compose <A, B, C> (this Func<A, B> f, Func<B, C> g)
- Compose <A, B> (this Func<A> f, Func<A, B> g)
- Compose <A, B> (this Func<A, B> f, Action<B> g)
- Compose <A> (this Func<A> f, Action<A> g)
- FuncExtensions
- ObjectExt
- ObservableExt
- PostSubscribe <T> ( this IObservable<T> self, Action action)
- PostSubscribe <T> ( this IObservable<T> self, Func<Unit> action)
- ToAsyncEnumerable <A> ( this IObservable<A> observable, CancellationToken token)
- Query
- head <T> (IQueryable<T> list)
- headOrNone <T> (IQueryable<T> list)
- headOrLeft <L, R> (IQueryable<R> list, L left)
- tail <T> (IQueryable<T> list)
- map <T, R> (IQueryable<T> list, Expression<Func<T, R>> map)
- map <T, R> (IQueryable<T> list, Expression<Func<int, T, R>> map)
- filter <T> (IQueryable<T> list, Expression<Func<T, bool>> predicate)
- choose <T, U> (IQueryable<T> list, Expression<Func<T, Option<U>>> selector)
- choose <T, U> (IQueryable<T> list, Expression<Func<int, T, Option<U>>> selector)
- collect <T, R> (IQueryable<T> list, Expression<Func<T, IEnumerable<R>>> map)
- sum (IQueryable<int> list)
- sum (IQueryable<float> list)
- sum (IQueryable<double> list)
- sum (IQueryable<decimal> list)
- rev <T> (IQueryable<T> list)
- append <T> (IQueryable<T> lhs, IQueryable<T> rhs)
- fold <S, T> (IQueryable<T> list, S state, Expression<Func<S, T, S>> folder)
- foldBack <S, T> (IQueryable<T> list, S state, Expression<Func<S, T, S>> folder)
- reduce <T> (IQueryable<T> list, Expression<Func<T, T, T>> reducer)
- reduceBack <T> (IQueryable<T> list, Expression<Func<T, T, T>> reducer)
- find <T> (IQueryable<T> list, Expression<Func<T, bool>> pred)
- freeze <T> (IQueryable<T> list)
- zip <T, U, V> (IQueryable<T> list, IEnumerable<U> other, Expression<Func<T, U, V>> zipper)
- length <T> (IQueryable<T> list)
- forall <T> (IQueryable<T> list, Expression<Func<T, bool>> pred)
- distinct <T> (IQueryable<T> list)
- take <T> (IQueryable<T> list, int count)
- takeWhile <T> (IQueryable<T> list, Expression<Func<T, bool>> pred)
- takeWhile <T> (IQueryable<T> list, Expression<Func<T, int, bool>> pred)
- exists <T> (IQueryable<T> list, Expression<Func<T, bool>> pred)
- QueryExtensions
- Head <T> (this IQueryable<T> list)
- HeadOrNone <T> (this IQueryable<T> list)
- HeadOrLeft <S, T> (this IQueryable<T> list, S left)
- Tail <T> (this IQueryable<T> list)
- Map <T, R> (this IQueryable<T> list, Expression<Func<T, R>> map)
- Map <T, R> (this IQueryable<T> list, Expression<Func<int, T, R>> map)
- Filter <T> (this IQueryable<T> list, Expression<Func<T, bool>> predicate)
- Choose <T, U> (this IQueryable<T> list, Expression<Func<T, Option<U>>> selector)
- Choose <T, U> (this IQueryable<T> list, Expression<Func<int, T, Option<U>>> selector)
- Collect <T, R> (this IQueryable<T> list, Expression<Func<T, IEnumerable<R>>> map)
- Rev <T> (this IQueryable<T> list)
- Append <T> (this IQueryable<T> lhs, IQueryable<T> rhs)
- Fold <S, T> (this IQueryable<T> list, S state, Expression<Func<S, T, S>> folder)
- FoldBack <S, T> (this IQueryable<T> list, S state, Expression<Func<S, T, S>> folder)
- Reduce <T> (this IQueryable<T> list, Expression<Func<T, T, T>> reducer)
- ReduceBack <T> (this IQueryable<T> list, Expression<Func<T, T, T>> reducer)
- Freeze <T> (this IQueryable<T> list)
- Zip <T, U, V> (this IQueryable<T> list, IEnumerable<U> other, Expression<Func<T, U, V>> zipper)
- Length <T> (this IQueryable<T> list)
- ForAll <T> (this IQueryable<T> list, Expression<Func<T, bool>> pred)
- Distinct <T> (this IQueryable<T> list)
- Exists <T> (this IQueryable<T> list, Expression<Func<T, bool>> pred)
- OutExtensions
- TryGetValue <K, V> (this IDictionary<K, V> self, K Key)
- TryGetValue <K, V> (this IReadOnlyDictionary<K, V> self, K ReadOnlyKey)
- UnsafeValueAccessExtensions
- ValueUnsafe <A> (this Option<A> option)
- Value <A> (this Option<A> option)
- Value <L, R> (this Either<L, R> either)
- ValueUnsafe <L, R> (this Either<L, R> either)
- ToSeqUnsafe <A> (this A[] value)
- ToSeqUnsafe <A> (this A[] value, int length)
- ToSeqLoanUnsafe <A> (this A[] value, ArrayPool<A> pool)
- ToSeqLoanUnsafe <A> (this A[] value, int length, ArrayPool<A> pool)
class ActionObservable <T> Source #
Executes an action post-subscription. This is useful when the action is going to publish to the observable. A kind of request/response. Use the IObservable extension method: PostSubscribe(() => ...)
class ComposeExtensions Source #
method Func<A, C> BackCompose <A, B, C> (this Func<B, C> g, Func<A, B> f) Source #
Function back composition
returns | v => g(f(v)) |
method Func<B> BackCompose <A, B> (this Func<A, B> g, Func<A> f) Source #
Function back composition
returns | () => g(f()) |
method Action<A> BackCompose <A, B> (this Action<B> g, Func<A, B> f) Source #
Action back composition
returns | v => g(f(v)) |
method Action BackCompose <A> (this Action<A> g, Func<A> f) Source #
Action back composition
returns | () => g(f()) |
method Func<A, C> Compose <A, B, C> (this Func<A, B> f, Func<B, C> g) Source #
Function composition
returns | v => g(f(v)) |
method Func<B> Compose <A, B> (this Func<A> f, Func<A, B> g) Source #
Function composition
returns | () => g(f()) |
class FuncExtensions Source #
method bool IsNull <A> (this A value) Source #
Returns true if the value is null, and does so without boxing of any value-types. Value-types will always return false.
returns | True if the value is null, and does so without boxing of any value-types. Value-types will always return false. |
int x = 0;
string y = null;
x.IsNull() // false
y.IsNull() // true
class ObservableExt Source #
Observable extensions
method IObservable<T> PostSubscribe <T> ( this IObservable<T> self, Action action) Source #
Executes an action post-subscription. This is useful when the action is going to publish to the observable. A kind of request/response.
method IObservable<T> PostSubscribe <T> ( this IObservable<T> self, Func<Unit> action) Source #
Executes an action post-subscription. This is useful when the action is going to publish to the observable. A kind of request/response.
method IAsyncEnumerable<A> ToAsyncEnumerable <A> ( this IObservable<A> observable, CancellationToken token) Source #
Convert an IObservable
to an IAsyncEnumerable
method Option<T> headOrNone <T> (IQueryable<T> list) Source #
method Either<L, R> headOrLeft <L, R> (IQueryable<R> list, L left) Source #
method IQueryable<U> choose <T, U> (IQueryable<T> list, Expression<Func<T, Option<U>>> selector) Source #
method IQueryable<U> choose <T, U> (IQueryable<T> list, Expression<Func<int, T, Option<U>>> selector) Source #
method IQueryable<R> collect <T, R> (IQueryable<T> list, Expression<Func<T, IEnumerable<R>>> map) Source #
method T reduceBack <T> (IQueryable<T> list, Expression<Func<T, T, T>> reducer) Source #
method IQueryable<V> zip <T, U, V> (IQueryable<T> list, IEnumerable<U> other, Expression<Func<T, U, V>> zipper) Source #
class QueryExtensions Source #
method Option<T> HeadOrNone <T> (this IQueryable<T> list) Source #
method Either<S, T> HeadOrLeft <S, T> (this IQueryable<T> list, S left) Source #
method IQueryable<T> Filter <T> (this IQueryable<T> list, Expression<Func<T, bool>> predicate) Source #
method IQueryable<U> Choose <T, U> (this IQueryable<T> list, Expression<Func<T, Option<U>>> selector) Source #
method IQueryable<U> Choose <T, U> (this IQueryable<T> list, Expression<Func<int, T, Option<U>>> selector) Source #
method IQueryable<R> Collect <T, R> (this IQueryable<T> list, Expression<Func<T, IEnumerable<R>>> map) Source #
method S FoldBack <S, T> (this IQueryable<T> list, S state, Expression<Func<S, T, S>> folder) Source #
method T ReduceBack <T> (this IQueryable<T> list, Expression<Func<T, T, T>> reducer) Source #
class OutExtensions Source #
method Option<V> TryGetValue <K, V> (this IDictionary<K, V> self, K Key) Source #
Get a value out of a dictionary as Some, otherwise None.
type | K | Key type |
type | V | Value type |
param | self | Dictionary |
param | Key | Key |
returns | OptionT filled Some(value) or None |
method Option<V> TryGetValue <K, V> (this IReadOnlyDictionary<K, V> self, K ReadOnlyKey) Source #
Get a value out of a dictionary as Some, otherwise None.
type | K | Key type |
type | V | Value type |
param | self | Dictionary |
param | ReadOnlyKey | Key |
returns | OptionT filled Some(value) or None |
class UnsafeValueAccessExtensions Source #
method A? ValueUnsafe <A> (this Option<A> option) Source #
method R? ValueUnsafe <L, R> (this Either<L, R> either) Source #
method Seq<A> ToSeqUnsafe <A> (this A[] value) Source #
This creates a Seq from an Array without any copying of data, so it's super fast However because the input array is mutable it weakens the guarantees of the immutable Seq, so this is not advised unless you know what you're doing.
method Seq<A> ToSeqUnsafe <A> (this A[] value, int length) Source #
This creates a Seq from an Array without any copying of data, so it's super fast However because the input array is mutable it weakens the guarantees of the immutable Seq, so this is not advised unless you know what you're doing.
method SeqLoan<A> ToSeqLoanUnsafe <A> (this A[] value, ArrayPool<A> pool) Source #
This creates a Seq from an Array without any copying of data, so it's super fast However because the input array is mutable it weakens the guarantees of the immutable Seq, so this is not advised unless you know what you're doing.
method SeqLoan<A> ToSeqLoanUnsafe <A> (this A[] value, int length, ArrayPool<A> pool) Source #
This creates a Seq from an Array without any copying of data, so it's super fast However because the input array is mutable it weakens the guarantees of the immutable Seq, so this is not advised unless you know what you're doing.