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, ArrayView, BitSet, BitSetOps, BufferedIterator, 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, ZipWithIndex, Map, TrieMap, ::, BitSet, BitSet1, BitSet2, BitSetN, HashMap, HashMap1, HashTrieMap, HashSet, ImmutableArray, IndexedSeq, IndexedSeqOps, Iterable, LazyList, Cons, Empty, LinearSeq, LinearSeqOps, List, ListMap, Node, ListSet, Node, 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, AbstractBuffer, AbstractIterable, AbstractMap, AbstractSeq, AbstractSet, ArrayBuffer, ArrayBufferView, BitSet, Buffer, HashMap, HashSet, IndexedOptimizedSeq, Iterable, IterableOps, LinkedHashMap, LinkedKeySet, LinkedHashSet, ListBuffer, Map, WithDefault, MapOps, Seq, SeqOps, Set, SetOps, SortedMap, SortedMapOps, SortedSet, SortedSetOps, TreeMap, TreeSet
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 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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

  8. 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

  9. def toList[B >: A]: List[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 List.from(it) instead of it.toList

Inherited from Any

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

Ungrouped