strawman.collections.CollectionStrawMan6

ArrayOps

Related Doc: package CollectionStrawMan6

implicit final class ArrayOps[A] extends AnyVal with IterableOps[A] with SeqMonoTransforms[A, Array[A]] with Buildable[A, Array[A]] with ArrayLike[A]

Decorator to add collection operations to arrays.

Linear Supertypes
ArrayLike[A], Buildable[A, Array[A]], SeqMonoTransforms[A, Array[A]], IterableMonoTransforms[A, Array[A]], IterableOps[A], AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ArrayOps
  2. ArrayLike
  3. Buildable
  4. SeqMonoTransforms
  5. IterableMonoTransforms
  6. IterableOps
  7. AnyVal
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ArrayOps(xs: Array[A])

Value Members

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

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

    Definition Classes
    Any
  3. def ++[B >: A](xs: IterableOnce[B])(implicit arg0: ClassTag[B]): Array[B]

  4. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  5. def apply(i: Int): A

    Definition Classes
    ArrayOpsArrayLike
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. 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
    ArrayOpsIterableOps
  8. def coll: ArrayView[A]

    Attributes
    protected
    Definition Classes
    ArrayOpsIterableMonoTransformsIterableOps
  9. def copyToArray[B >: A](xs: Array[B], start: Int = 0): IterableOps.copyToArray.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): Array[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. def elemTag: ClassTag[A]

  12. def filter(p: (A) ⇒ Boolean): Array[A]

    All elements satisfying predicate p

    All elements satisfying predicate p

    Definition Classes
    IterableMonoTransforms
  13. def flatMap[B](f: (A) ⇒ IterableOnce[B])(implicit arg0: ClassTag[B]): Array[B]

  14. def foldLeft[B](z: B)(op: (B, A) ⇒ B): B

    Fold left

    Fold left

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

    Fold right

    Fold right

    Definition Classes
    IterableOps
  16. 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
  17. def fromIterable[B](coll: Iterable[B])(implicit arg0: ClassTag[B]): Array[B]

  18. def fromIterableWithSameElemType(coll: Iterable[A]): Array[A]

    Attributes
    protected
    Definition Classes
    ArrayOpsIterableMonoTransforms
  19. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  20. def head: A

    The first element of the collection.

    The first element of the collection.

    Definition Classes
    IterableOps
  21. 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
  22. def isEmpty: Boolean

    Is the collection empty?

    Is the collection empty?

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

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

  25. 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
    ArrayOpsIterableOps
  26. def length: Int

    Definition Classes
    ArrayOpsArrayLike
  27. def map[B](f: (A) ⇒ B)(implicit arg0: ClassTag[B]): Array[B]

  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. def newBuilder: Builder[A, Array[A]]

    Creates a new builder.

    Creates a new builder.

    Attributes
    protected[this]
    Definition Classes
    ArrayOpsBuildable
  30. def partition(p: (A) ⇒ Boolean): (Array[A], Array[A])

    Optimized, push-based version of partition.

    Optimized, push-based version of partition.

    Definition Classes
    BuildableIterableMonoTransforms
  31. def reverse: Array[A]

    Definition Classes
    SeqMonoTransforms
  32. 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
  33. def tail: Array[A]

    The rest of the collection without its first element.

    The rest of the collection without its first element.

    Definition Classes
    IterableMonoTransforms
  34. def take(n: Int): Array[A]

    A collection containing the first n elements of this collection.

    A collection containing the first n elements of this collection.

    Definition Classes
    IterableMonoTransforms
  35. 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
  36. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]

    Convert collection to array.

    Convert collection to array.

    Definition Classes
    IterableOps
  37. def toString(): String

    Definition Classes
    IterableOps → Any
  38. def view: ArrayView[A]

    A view representing the elements of this collection.

    A view representing the elements of this collection.

    Definition Classes
    ArrayOpsIterableOps
  39. val xs: Array[A]

  40. def zip[B](xs: IterableOnce[B])(implicit arg0: ClassTag[B]): Array[(A, B)]

Inherited from ArrayLike[A]

Inherited from Buildable[A, Array[A]]

Inherited from SeqMonoTransforms[A, Array[A]]

Inherited from IterableMonoTransforms[A, Array[A]]

Inherited from IterableOps[A]

Inherited from AnyVal

Inherited from Any

Ungrouped