示例#1
0
 /** 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;
 }
示例#2
0
 /** 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;
 }