Scala Library Documentation
|
|
trait
MutableIterable[A]
extends
Collection[A]Method Summary | |
def
|
- (t : A) : MutableIterable |
def
|
--
(that : Iterable[A]) : MutableIterable
Operator shortcut for removeAll.
|
def
|
clear
: Unit
clear all elements from the collection.
|
override abstract def
|
elements
: MutableIterator[A]
Creates a new iterator over all elements contained in this
object.
|
def
|
has (t : A) : Boolean |
override def
|
projection
: Projection
returns a facade that can be used to call non-strict
filter ,
map , and flatMap methods that build projections
of the collection. |
def
|
remove (t : A) : Boolean |
def
|
removeAll (that : Iterable[A]) : Boolean |
def
|
retain
(p : (A) => Boolean) : Unit
retain only elements in the collection that predicate p is true for.
|
def
|
retainAll
(that : Iterable[A]) : Boolean
retain only elements that are also in that.
|
protected def
|
size0 : Int |
Methods inherited from Collection | |
size (abstract), toArray, toString, stringPrefix |
Methods inherited from Iterable | |
concat, ++, map, flatMap, filter, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, addString, addString, copyToArray, isEmpty, hasDefiniteSize |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Class Summary | |
protected class
|
Map
[B](f : (A) => B) extends MutableIterable[B]
The default implementation of a map over mutable iterable collections.
|
trait
|
Projection
extends Projection
|
Method Details |
def
--(that : Iterable[A]) : MutableIterable
def
-(t : A) : MutableIterable
protected
def
size0 : Int
def
clear : Unit
override
def
projection : Projection
filter
,
map
, and flatMap
methods that build projections
of the collection.override abstract
def
elements : MutableIterator[A]
Scala Library Documentation
|
|