Seq set(T[])
@@ -430,9 +430,15 @@ public class Seq<T> implements Iterable<T>, Eachable<T>{
}
/** Sets this array's contents to the specified array. */
- public void set(Seq<? extends T> array){
+ public Seq<T> set(Seq<? extends T> array){
clear();
- addAll(array);
+ return addAll(array);
+ }
+
+ /** Sets this array's contents to the specified array. */
+ public Seq<T> set(T[] array){
+ clear();
+ return addAll(array);
}
@Nullable
