trait IterableOps[+A] extends Any
Operations over iterables. No operation defined here is generic in the type of the underlying collection.
- Alphabetic
- By Inheritance
- IterableOps
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
className: String
The class name of this collection.
The class name of this collection. To be used for converting to string. Collections generally print like this:
<className>(elem_1, ..., elem_n)
-
def
copyToArray[B >: A](xs: Array[B], start: Int = 0): xs.type
Copy all elements of this collection to array
xs, starting atstart. -
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
foldLeft[B](z: B)(op: (B, A) ⇒ B): B
Fold left
-
def
foldRight[B](z: B)(op: (A, B) ⇒ B): B
Fold right
-
def
foreach[U](f: (A) ⇒ U): Unit
Apply
fto each element for its side effects Note: [U] parameter needed to help scalac's type inference. -
def
hashCode(): Int
- Definition Classes
- Any
-
def
head: A
The first element of the collection.
-
def
indexWhere(p: (A) ⇒ Boolean): Int
The index of the first element in this collection for which
pholds. -
def
isEmpty: Boolean
Is the collection empty?
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
knownSize: Int
The number of elements in this collection, if it can be cheaply computed, -1 otherwise.
The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.
-
def
mkString(sep: String): String
A string showing all elements of this collection, separated by string
sep. -
def
nonEmpty: Boolean
Is the collection not empty?
-
def
size: Int
The number of elements in this collection.
The number of elements in this collection. Does not terminate for infinite collections.
-
def
to[C[X] <: Iterable[X]](fi: FromIterable[C]): C[A]
Given a collection factory
fifor collections of type constructorC, convert this collection to one of typeC[A].Given a collection factory
fifor collections of type constructorC, convert this collection to one of typeC[A]. Example uses:xs.to(List) xs.to(ArrayBuffer)
-
def
toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
Convert collection to array.
-
def
toString(): String
- Definition Classes
- IterableOps → Any
-
def
view: View[A]
A view representing the elements of this collection.