コード例 #1
0
 /**
  * Constructs a non empty list from the given elements.
  *
  * @param head The first in the non-empty list.
  * @param tail The elements to construct a list's tail with.
  * @return A non-empty list with the given elements.
  */
 @SafeVarargs
 public static <A> NonEmptyList<A> nel(final A head, final A... tail) {
   return nel(head, List.list(tail));
 }