LanguageExt.Core

LanguageExt.Core Immutable Collections Arr Extensions

Contents

class ArrExtensions Source #

Methods

method Arr<A> As <A> (this K<Arr, A> xs) Source #

method A[] Flatten <A> (this A[][] ma) Source #

Monadic join

method Arr<A> Flatten <A> (this Arr<Arr<A>> ma) Source #

Monadic join

method Arr<A> Filter <A> (this Arr<A> ma, Func<A, bool> f) Source #

method Arr<A> Where <A> (this Arr<A> ma, Func<A, bool> f) Source #

method Arr<B> Map <A, B> (this Arr<A> ma, Func<A, B> f) Source #

method Arr<B> Select <A, B> (this Arr<A> ma, Func<A, B> f) Source #

method Arr<B> Bind <A, B> (this Arr<A> ma, Func<A, Arr<B>> f) Source #

method Arr<B> SelectMany <A, B> (this Arr<A> ma, Func<A, Arr<B>> f) Source #

method Arr<C> SelectMany <A, B, C> (this Arr<A> ma, Func<A, Arr<B>> bind, Func<A, B, C> project) Source #

method IQueryable<A> AsQueryable <A> (this Arr<A> source) Source #

Convert to a queryable

class ArrExtensions Source #

Methods

method Arr<B> Map <A, B> (this Func<A, B> f, K<Arr, A> ma) Source #

Functor map operation

Unwraps the value within the functor, passes it to the map function f provided, and then takes the mapped value and wraps it back up into a new functor.

Parameters

param ma

Functor to map

param f

Mapping function

returns

Mapped functor

method Arr<B> Map <A, B> (this Func<A, B> f, Arr<A> ma) Source #

Functor map operation

Unwraps the value within the functor, passes it to the map function f provided, and then takes the mapped value and wraps it back up into a new functor.

Parameters

param ma

Functor to map

param f

Mapping function

returns

Mapped functor

method Arr<B> Action <A, B> (this Arr<A> ma, K<Arr, B> mb) Source #

Applicative action: runs the first applicative, ignores the result, and returns the second applicative

method Arr<B> Action <A, B> (this K<Arr, A> ma, K<Arr, B> mb) Source #

Applicative action: runs the first applicative, ignores the result, and returns the second applicative

method Arr<B> Apply <A, B> (this Arr<Func<A, B>> mf, K<Arr, A> ma) Source #

Applicative functor apply operation

Unwraps the value within the ma applicative-functor, passes it to the unwrapped function(s) within mf, and then takes the resulting value and wraps it back up into a new applicative-functor.

Parameters

param ma

Value(s) applicative functor

param mf

Mapping function(s)

returns

Mapped applicative functor

method Arr<B> Apply <A, B> (this K<Arr, Func<A, B>> mf, K<Arr, A> ma) Source #

Applicative functor apply operation

Unwraps the value within the ma applicative-functor, passes it to the unwrapped function(s) within mf, and then takes the resulting value and wraps it back up into a new applicative-functor.

Parameters

param ma

Value(s) applicative functor

param mf

Mapping function(s)

returns

Mapped applicative functor