Functional
default Function15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, Function<T16, R>> curry15()
flatmap
category theory
profunctors
functors
flatmap
() -> a -> b -> (c, d, e) -> f -> a(b)(c)[d](e, f)
filter
profunctors
filter
A monad is a monoid in the category of endofunctors.
filter
functors
flatmap
collection.filter(…).map(…).flatMap(…).filter(…).map(…).filter(…).forEach(…)
Int -> Int -> Int -> Int -> Int -> Int -> Int -> Int -> Int
λ
(+ 1 1)
map
filter
The λ-cube sees all
functors
functors
collection.filter(…).map(…).flatMap(…).filter(…).map(…).filter(…).forEach(…)
filter
profunctors
map
The λ-cube sees all
map
profunctors
std::reduce(std::execution::seq, v.cbegin(), v.cend())
filter
>>==
filter
filter
filter
interface Mu extends Profunctor.Mu {}
filter
category theory
flatmap
The λ-cube sees all
functors
public interface Applicative<F extends K1, Mu extends Applicative.Mu> extends Functor<F, Mu>
upgrades.flatMapIndexed { idx, entry -> entry.map { Pair(it.key.position.add(-2.0*idx, 0.0, 0.0), Pair(it.value, it.value.data)) } }
A monad is a monoid in the category of endofunctors.
category theory
filter
filter
profunctors
filter