(Changed in version 2.8.0) + creates a new map. Use += to add an element to this map and return that map itself.
(Changed in version 2.8.0) + creates a new map. Use += to add an element to this map and return that map itself.
(Changed in version 2.8.0) ++ creates a new map. Use ++= to add an element to this map and return that map itself.
(Changed in version 2.8.0) - creates a new map. Use -= to remove an element from this map and return that map itself.
(Changed in version 2.8.0) - creates a new map. Use -= to remove an element from this map and return that map itself.
(Changed in version 2.8.0) -- creates a new map. Use --= to remove an element from this map and return that map itself.
Note that removing an element in the array simply replaces it with the default(i)
Note that removing an element in the array simply replaces it with the default(i)
Returns the array we're holding on to.
(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.
(Changed in version 2.8.0) values returns Iterable[B] rather than Iterator[B].
Wraps an ArrayBuffer with a Map. Note the odd behavior for -=
The key must be nonnegative
Chances are you want to change defValue, which is used to fill in blanks if you don't add things consecutively. Otherwise you get an Exception.