LanguageExt.Core

LanguageExt.Core Immutable Collections Iterable Extensions

Contents

class IterableExtensions Source #

Methods

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

method Iterable<A> AsIterable <A> (this IEnumerable<A> xs) Source #

method Iterable<A> AsIterable <A> (this IAsyncEnumerable<A> xs) Source #

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

method Iterable<B> Choose <B> (Func<A, Option<B>> selector) Source #

Applies the given function 'selector' to each element of the sequence. Returns the sequence comprised of the results for each element where the function returns Some(f(x)).

Parameters

param selector

Selector function

returns

Mapped and filtered sequence

method Iterable<A> Rev () Source #

class IterableExtensions Source #

Methods

method Iterable<B> Map <A, B> (this Func<A, B> f, K<Iterable, 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 Iterable<B> Map <A, B> (this Func<A, B> f, Iterable<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 Iterable<B> Action <A, B> (this K<Iterable, A> ma, K<Iterable, B> mb) Source #

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

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

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

method Iterable<B> Apply <A, B> (this Iterable<Func<A, B>> mf, K<Iterable, 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 Iterable<B> Apply <A, B> (this K<Iterable, Func<A, B>> mf, K<Iterable, 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