Package io.keikai.doc.collab.lib0
Class Arrays
java.lang.Object
io.keikai.doc.collab.lib0.Arrays
Utility module to work with Arrays.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <M> voidstatic <D> List<D>static <C> List<C>create()static <E> booleanequalFlat(E[] a, E[] b) static <I> booleanstatic <E> List<E>static <T,R> R fold(List<T> arr, R seed, TriFunction<R, T, Number, R> folder) static <T> List<T>static booleanstatic <L> Llast(L[] arr) static <T,M> List<M> map(List<T> arr, BiFunction<T, Integer, M> mapper) static <S> booleanstatic <T> List<T>unfold(int len, BiFunction<Integer, List<T>, T> f) static <T> List<T>static <T,M> List<T>
-
Method Details
-
last
public static <L> L last(L[] arr) -
create
-
copy
-
appendTo
-
from
-
every
-
some
-
equalFlat
public static <E> boolean equalFlat(E[] a, E[] b) -
flatten
-
unfold
-
fold
-
isArray
-
unique
-
uniqueBy
-
map
-