public final class Concat<A> extends Object implements Monoid<Iterable<A>>
Monoid
Modifier and Type | Method and Description |
---|---|
Iterable<A> |
checkedApply(Iterable<A> xs,
Iterable<A> ys) |
static <A> Concat<A> |
concat() |
static <A> Fn1<Iterable<A>,Iterable<A>> |
concat(Iterable<A> xs) |
static <A> Iterable<A> |
concat(Iterable<A> xs,
Iterable<A> ys) |
<B> Iterable<A> |
foldMap(Fn1<? super B,? extends Iterable<A>> fn,
Iterable<B> bs)
Homomorphism combined with catamorphism.
|
Iterable<A> |
identity()
The identity element of this monoid.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flip, foldLeft, foldRight, monoid, monoid, reduceLeft, reduceRight
apply, apply, checkedApply, compose, contraMap, curried, curry, diMapL, discardR, fn2, fromBiFunction, toBiFunction, uncurry, widen
public Iterable<A> identity()
Monoid
public <B> Iterable<A> foldMap(Fn1<? super B,? extends Iterable<A>> fn, Iterable<B> bs)
Monoid
Iterable<B>
to an
Iterable<A>
(that is, an Iterable
of elements this monoid is formed over), then
reduce the result from left to right. Under algebraic data types, this is isomorphic to a flatMap.public static <A> Concat<A> concat()