Appends a number of elements provided by a traversable object.
Appends a number of elements provided by a traversable object. The identity of the array is returned.
the traversable object.
the updated buffer.
Prepends a number of elements provided by a traversable object.
Prepends a number of elements provided by a traversable object. The identity of the array is returned.
the traversable object.
the updated array.
Appends a single element to this array and returns the identity of the array.
Appends a single element to this array and returns the identity of the array. It takes constant amortized time.
the element to append.
the updated array.
Prepends a single element to this buffer and returns the identity of the array.
Prepends a single element to this buffer and returns the identity of the array. It takes time linear in the buffer size.
the element to prepend.
the updated array.
Look up field in the current object.
Look up field in the current object and all descendants.
Inserts new elements at the index n
.
Inserts new elements at the index n
. Opposed to method
update
, this method will not replace an element with a new
one. Instead, it will insert a new element at index n
.
the index where a new element will be inserted.
the traversable object providing all elements to insert.
Removes the element on a given index position.
Removes the element on a given index position. It takes time linear in the buffer size.
the index which refers to the first element to delete.
the number of elements to delete
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.