Packages

t

strawman.collection

IterableOps

trait IterableOps[+A] extends Any

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IterableOps
  2. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def coll: Iterable[A]
    Attributes
    protected
  2. abstract def getClass(): Class[_]
    Definition Classes
    Any

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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)

  6. def copyToArray[B >: A](xs: Array[B], start: Int = 0): xs.type

    Copy all elements of this collection to array xs, starting at start.

  7. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  8. def foldLeft[B](z: B)(op: (B, A) ⇒ B): B

    Fold left

  9. def foldRight[B](z: B)(op: (A, B) ⇒ B): B

    Fold right

  10. def foreach[U](f: (A) ⇒ U): Unit

    Apply f to each element for its side effects Note: [U] parameter needed to help scalac's type inference.

  11. def hashCode(): Int
    Definition Classes
    Any
  12. def head: A

    The first element of the collection.

  13. def indexWhere(p: (A) ⇒ Boolean): Int

    The index of the first element in this collection for which p holds.

  14. def isEmpty: Boolean

    Is the collection empty?

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. 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.

  17. def mkString(sep: String): String

    A string showing all elements of this collection, separated by string sep.

  18. def nonEmpty: Boolean

    Is the collection not empty?

  19. def size: Int

    The number of elements in this collection.

    The number of elements in this collection. Does not terminate for infinite collections.

  20. def to[C[X] <: Iterable[X]](fi: FromIterable[C]): C[A]

    Given a collection factory fi for collections of type constructor C, convert this collection to one of type C[A].

    Given a collection factory fi for collections of type constructor C, convert this collection to one of type C[A]. Example uses:

    xs.to(List) xs.to(ArrayBuffer)

  21. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]

    Convert collection to array.

  22. def toString(): String
    Definition Classes
    IterableOps → Any
  23. def view: View[A]

    A view representing the elements of this collection.

Inherited from Any

Ungrouped