Package eu.bandm.tools.ops
Class Lists
java.lang.Object
eu.bandm.tools.ops.Lists
Library of constants and combinators for classes implementing
List
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <A> BiFunction<List<? extends A>,
List<? extends A>, List<A>> concat()
static <A> List<A>
static <A,
B> B fold
(InitConsumer<? super A, B> c, List<? extends A> elems) static <A,
B> List<B> static <A> List<A>
static <A> List<A>
snapshot
(Collection<? extends A> elems) static <A,
B> Function<InitProducer<? extends A, B>, List<A>> unfold()
static <A,
B> List<A> unfold
(InitProducer<? extends A, B> p) static <A,
B, C> List<C> zip
(BiFunction<? super A, ? super B, ? extends C> fun, List<? extends A> left, List<? extends B> right)
-
Method Details
-
reverse
-
snapshot
-
map
-
fold
-
unfold
-
unfold
-
concat
-
concat
-
zip
public static <A,B, List<C> zipC> (BiFunction<? super A, ? super B, ? extends C> fun, List<? extends A> left, List<? extends B> right) -
transpose
-