Package eu.bandm.tools.util.java
Class ListIterators
java.lang.Object
eu.bandm.tools.util.java.ListIterators
Library of combinators for classes implementing
ListIterator
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <A> ListIterator<A>
concat
(ListIterator<? extends A> i1, ListIterator<? extends A> i2, boolean first) static <A,
B> ListIterator<B> map
(Function<? super A, ? extends B> f, ListIterator<? extends A> i) static <A> ListIterator<A>
reverse
(int n, ListIterator<A> i) static <A,
B, C> ListIterator<C> zip
(BiFunction<? super A, ? super B, ? extends C> fun, ListIterator<? extends A> left, ListIterator<? extends B> right)
-
Method Details
-
map
public static <A,B> ListIterator<B> map(Function<? super A, ? extends B> f, ListIterator<? extends A> i) -
concat
public static <A> ListIterator<A> concat(ListIterator<? extends A> i1, ListIterator<? extends A> i2, boolean first) -
reverse
-
zip
public static <A,B, ListIterator<C> zipC> (BiFunction<? super A, ? super B, ? extends C> fun, ListIterator<? extends A> left, ListIterator<? extends B> right)
-