Contents
- IterableExtensions
- As <A> (this K<Iterable, A> xs)
- AsIterable <A> (this IEnumerable<A> xs)
- Flatten <A> (this Iterable<Iterable<A>> ma)
- Choose <A, B> (this Iterable<A> list, Func<A, Option<B>> selector)
- Rev <T> (this Iterable<T> list)
- IterableExtensions
- Map <A, B> (this Func<A, B> f, K<Iterable, A> ma)
- Map <A, B> (this Func<A, B> f, Iterable<A> ma)
- Action <A, B> (this K<Iterable, A> ma, K<Iterable, B> mb)
- Action <A, B> (this Iterable<A> ma, K<Iterable, B> mb)
- Apply <A, B> (this Iterable<Func<A, B>> mf, K<Iterable, A> ma)
- Apply <A, B> (this K<Iterable, Func<A, B>> mf, K<Iterable, A> ma)
class IterableExtensions Source #
Methods
method Iterable<A> AsIterable <A> (this IEnumerable<A> xs) Source #
method Iterable<B> Choose <A, B> (this Iterable<A> list, 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
| type | A | sequence item type |
| param | list | sequence |
| param | selector | Selector function |
| returns | Mapped and filtered sequence | |
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 | |