strawman.collections.CollectionStrawMan6.View

Concat

Related Doc: package View

case class Concat[A](underlying: Iterable[A], other: IterableOnce[A]) extends View[A] with Product with Serializable

A view that concatenates elements of the underlying collection with the elements of another collection or iterator.

Linear Supertypes
Serializable, Serializable, Product, Equals, View[A], Iterable[A], IterableLike[A, View], IterablePolyTransforms[A, View], IterableMonoTransforms[A, View[A]], IterableOps[A], FromIterable[View], IterableOnce[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Concat
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. View
  7. Iterable
  8. IterableLike
  9. IterablePolyTransforms
  10. IterableMonoTransforms
  11. IterableOps
  12. FromIterable
  13. IterableOnce
  14. AnyRef
  15. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Concat(underlying: Iterable[A], other: IterableOnce[A])

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def ++[B >: A](xs: IterableOnce[B]): View[B]

    Concatenation

    Concatenation

    Definition Classes
    IterablePolyTransforms
  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. 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)

    Definition Classes
    ViewIterableOps
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def coll: Concat.this.type

    The collection itself

    The collection itself

    Attributes
    protected
    Definition Classes
    IterableIterablePolyTransformsIterableMonoTransformsIterableOps
  9. def copyToArray[B >: A](xs: Array[B], start: Int = 0): xs.type

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

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

    Definition Classes
    IterableOps
  10. def drop(n: Int): View[A]

    The rest of the collection without its n first elements.

    The rest of the collection without its n first elements. For linear, immutable collections this should avoid making a copy.

    Definition Classes
    IterableMonoTransforms
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def filter(p: (A) ⇒ Boolean): View[A]

    All elements satisfying predicate p

    All elements satisfying predicate p

    Definition Classes
    IterableMonoTransforms
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flatMap[B](f: (A) ⇒ IterableOnce[B]): View[B]

    Flatmap

    Flatmap

    Definition Classes
    IterablePolyTransforms
  15. def foldLeft[B](z: B)(op: (B, A) ⇒ B): B

    Fold left

    Fold left

    Definition Classes
    IterableOps
  16. def foldRight[B](z: B)(op: (A, B) ⇒ B): B

    Fold right

    Fold right

    Definition Classes
    IterableOps
  17. def foreach(f: (A) ⇒ Unit): Unit

    Apply f to each element for tis side effects

    Apply f to each element for tis side effects

    Definition Classes
    IterableOps
  18. def fromIterable[B](c: Iterable[B]): View[B]

    Avoid copying if source collection is already a view.

    Avoid copying if source collection is already a view.

    Definition Classes
    ViewIterablePolyTransformsFromIterable
  19. def fromIterableWithSameElemType(coll: Iterable[A]): View[A]

    Create a collection of type C[A] from the elements of coll, which has the same element type as this collection.

    Create a collection of type C[A] from the elements of coll, which has the same element type as this collection. Overridden in StringOps and ArrayOps.

    Attributes
    protected[this]
    Definition Classes
    IterableLikeIterableMonoTransforms
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def head: A

    The first element of the collection.

    The first element of the collection.

    Definition Classes
    IterableOps
  22. def indexWhere(p: (A) ⇒ Boolean): Int

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

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

    Definition Classes
    IterableOps
  23. def isEmpty: Boolean

    Is the collection empty?

    Is the collection empty?

    Definition Classes
    IterableOps
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def iterator: Iterator[A]

    Definition Classes
    ConcatIterableOnce
  26. 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.

    Definition Classes
    ConcatIterableOps
  27. def map[B](f: (A) ⇒ B): View[B]

    Map

    Map

    Definition Classes
    IterablePolyTransforms
  28. def mkString(sep: String): String

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

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

    Definition Classes
    IterableOps
  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. val other: IterableOnce[A]

  33. def partition(p: (A) ⇒ Boolean): (View[A], View[A])

    A pair of, first, all elements that satisfy prediacte p and, second, all elements that do not.

    A pair of, first, all elements that satisfy prediacte p and, second, all elements that do not. Interesting because it splits a collection in two.

    The default implementation provided here needs to traverse the collection twice. Strict collections have an overridden version of partition in Buildable, which requires only a single traversal.

    Definition Classes
    IterableMonoTransforms
  34. def size: Int

    The number of elements in this collection.

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

    Definition Classes
    IterableOps
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def tail: View[A]

    The rest of the collection without its first element.

    The rest of the collection without its first element.

    Definition Classes
    IterableMonoTransforms
  37. def take(n: Int): View[A]

    A collection containing the first n elements of this collection.

    A collection containing the first n elements of this collection.

    Definition Classes
    IterableMonoTransforms
  38. 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)

    Definition Classes
    IterableOps
  39. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]

    Convert collection to array.

    Convert collection to array.

    Definition Classes
    IterableOps
  40. def toString(): String

    Definition Classes
    IterableOps → Any
  41. val underlying: Iterable[A]

  42. def view: View[A]

    A view representing the elements of this collection.

    A view representing the elements of this collection.

    Definition Classes
    ViewIterableOps
  43. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def zip[B](xs: IterableOnce[B]): View[(A, B)]

    Zip.

    Zip. Interesting because it requires to align to source collections.

    Definition Classes
    IterablePolyTransforms

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from View[A]

Inherited from Iterable[A]

Inherited from IterableLike[A, View]

Inherited from IterablePolyTransforms[A, View]

Inherited from IterableMonoTransforms[A, View[A]]

Inherited from IterableOps[A]

Inherited from FromIterable[View]

Inherited from IterableOnce[A]

Inherited from AnyRef

Inherited from Any

Ungrouped