/** Applies successively the method {@link PersistentSortedSet#plus(E)}. */ public static <E> PersistentSortedSet<E> plusAll(PersistentSortedSet<E> set, E... others) { PersistentSortedSet<E> result = set; for (E other : others) { result = result.plus(other); } return result; }
/** Applies successively the method {@link PersistentSortedSet#plus(E)}. */ public static <E> PersistentSortedSet<E> plusAll( PersistentSortedSet<E> set, Iterable<? extends E> others) { PersistentSortedSet<E> result = set; for (E other : others) { result = result.plus(other); } return result; }