trait IterableOnce[+A] extends Any

A template trait for collections which can be traversed either once only or one or more times.

Linear Supertypes
Any
Known Subclasses
AbstractIterable, AbstractIterator, AbstractMap, AbstractSeq, ArrayOps, BitSet, BitSetOps, BufferedIterator, DefaultMap, IndexedSeq, IndexedSeqOps, IndexedView, Drop, DropRight, Map, Reverse, Take, TakeRight, Iterable, IterableOps, Iterator, GroupedIterator, LinearSeq, LinearSeqOps, Map, MapOps, KeySet, Seq, SeqOps, Set, SetOps, SortedMap, SortedMapOps, KeySortedSet, SortedSet, SortedSetOps, StrictOptimizedIterableOps, StrictOptimizedSeqOps, StrictOptimizedSortedSetOps, StringOps, StringView, View, Append, Concat, DistinctBy, Drop, DropWhile, Elems, Empty, Fill, Filter, FilterKeys, FlatMap, Iterate, Map, MapValues, PadTo, Partitioned, Prepend, ScanLeft, Single, Tabulate, Take, TakeWhile, Updated, Zip, ZipAll, ZipWithIndex, Map, TrieMap, ::, BitSet, BitSet1, BitSet2, BitSetN, HashMap, HashMap1, HashTrieMap, HashSet, ImmutableArray, ofBoolean, ofByte, ofChar, ofDouble, ofFloat, ofInt, ofLong, ofRef, ofShort, ofUnit, IndexedSeq, IndexedSeqOps, IntMap, Iterable, LazyList, Cons, Empty, LinearSeq, LinearSeqOps, List, ListMap, Node, ListSet, Node, LongMap, Map, Map1, Map2, Map3, Map4, SmallMap, WithDefault, MapOps, ImmutableKeySet, Nil, NumericRange, Exclusive, Inclusive, Range, Exclusive, Inclusive, Seq, SeqOps, Set, Set1, Set2, Set3, Set4, SmallSet, SetOps, SortedMap, SortedMapOps, ImmutableKeySortedSet, SortedSet, SortedSetOps, StrictOptimizedSeqOps, TreeMap, TreeSet, Vector, VectorIterator, WrappedString, AbstractBuffer, AbstractIterable, AbstractMap, AbstractSeq, AbstractSet, AnyRefMap, ArrayBuffer, ArrayBufferView, BitSet, Buffer, HashMap, HashSet, IndexedOptimizedBuffer, IndexedOptimizedSeq, IndexedSeq, IndexedSeqOps, Iterable, IterableOps, LinkedHashMap, LinkedKeySet, LinkedHashSet, ListBuffer, LongMap, Map, WithDefault, MapOps, Seq, SeqOps, Set, SetOps, SortedMap, SortedMapOps, SortedSet, SortedSetOps, StringBuilder, TreeMap, TreeSet, WrappedArray, ofBoolean, ofByte, ofChar, ofDouble, ofFloat, ofInt, ofLong, ofRef, ofShort, ofUnit
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IterableOnce
  2. Any
Implicitly
  1. by iterableOnceExtensionMethods
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getClass(): Class[_]
    Definition Classes
    Any
  2. abstract def iterator(): Iterator[A]

    Iterator can be used only once

  3. abstract def knownSize: Int

    returns

    The number of elements of this collection if it can be computed in O(1) time, otherwise -1

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 equals(arg0: Any): Boolean
    Definition Classes
    Any
  6. def hashCode(): Int
    Definition Classes
    Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def toString(): String
    Definition Classes
    Any

Deprecated Value Members

  1. def /:[B](z: B)(op: (B, A) ⇒ B): B
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator().foldLeft instead of /: on IterableOnce

  2. def :\[B](z: B)(op: (A, B) ⇒ B): B
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator().foldRight instead of :\ on IterableOnce

  3. def find(p: (A) ⇒ Boolean): Option[A]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator().find instead of .find on IterableOnce

  4. def flatMap[B](f: (A) ⇒ IterableOnce[B]): IterableOnce[B]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator().flatMap instead of .flatMap on IterableOnce or consider requiring an Iterable

  5. def foldLeft[B](z: B)(op: (B, A) ⇒ B): B
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator().foldLeft instead of .foldLeft on IterableOnce

  6. def foldRight[B](z: B)(op: (A, B) ⇒ B): B
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator().foldRight instead of .foldLeft on IterableOnce

  7. def foreach[U](f: (A) ⇒ U): Unit
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator().foreach(...) instead of .foreach(...) on IterableOnce

  8. def isEmpty: Boolean
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator().isEmpty instead of .isEmpty on IterableOnce

  9. def map[B](f: (A) ⇒ B): IterableOnce[B]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator().map instead of .map on IterableOnce or consider requiring an Iterable

  10. def mkString: String
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator().mkString instead of .mkString on IterableOnce

  11. def mkString(sep: String): String
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator().mkString instead of .mkString on IterableOnce

  12. def mkString(start: String, sep: String, end: String): String
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator().mkString instead of .mkString on IterableOnce

  13. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use ArrayBuffer.from(it).toArray

  14. def toBuffer[B >: A]: Buffer[B]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use ArrayBuffer.from(it) instead of it.toBuffer

  15. def toIterator: Iterator[A]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) toIterator has been renamed to iterator()

  16. def toList: List[A]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use List.from(it) instead of it.toList

  17. def toMap[K, V](implicit ev: <:<[A, (K, V)]): immutable.Map[K, V]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use Map.from(it) instead of it.toVector on IterableOnce

  18. def toSeq: immutable.Seq[A]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use Seq.from(it) instead of it.toSeq

  19. def toSet[B >: A]: immutable.Set[B]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use Set.from(it) instead of it.toSet

  20. def toStream: LazyList[A]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use LazyList.from(it) instead of it.toStream

  21. def toVector: Vector[A]
    Implicit
    This member is added by an implicit conversion from IterableOnce[A] to IterableOnceExtensionMethods[A] performed by method iterableOnceExtensionMethods in strawman.collection.IterableOnce.
    Definition Classes
    IterableOnceExtensionMethods
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use Vector.from(it) instead of it.toVector on IterableOnce

Inherited from Any

Inherited by implicit conversion iterableOnceExtensionMethods from IterableOnce[A] to IterableOnceExtensionMethods[A]

Ungrouped