Class Lists

java.lang.Object
eu.bandm.tools.util.java.Lists

public abstract class Lists extends Object
Library of constants and combinators for classes implementing List.
  • Method Details

    • reverse

      public static <A> List<A> reverse(List<A> list)
    • snapshot

      public static <A> List<A> snapshot(Collection<? extends A> elems)
    • map

      public static <A, B> List<B> map(Function<? super A,? extends B> f, List<? extends A> elems)
    • concat

      public static <A> List<A> concat(List<? extends A> elems1, List<? extends A> elems2)
    • concat

      public static <A> BiFunction<List<? extends A>,List<? extends A>,List<A>> concat()
    • zip

      public static <A, B, C> List<C> zip(BiFunction<? super A,? super B,? extends C> fun, List<? extends A> left, List<? extends B> right)
    • transpose

      public static <A> List<List<A>> transpose(List<? extends List<? extends A>> ls)