final
class
ArrayOps
[
A
]
extends
AnyVal
with
IterableOps
with
SeqMonoTransforms
with
Buildable
with
ArrayLike
Decorator to add collection operations to arrays.
Constructors
ArrayOps
(
xs:
Array
[
A
]
)
Members
val
xs
: Array
[
A
]
def
++
(
xs:
IterableOnce
[
B
]
)
(
implicit
evidence$12:
ClassTag
[
B
]
)
: Array
[
B
]
def
apply
(
i:
Int
)
: A
override
def
className
: String
The class name of this collection. To be used for converting to string. Collections generally print like this:
<className>(elem_1, ..., elem_n)
The class name of this collection. To be used for converting to string. Collections generally print like this:
<className>(elem_1, ..., elem_n)
protected
def
coll
: Iterable
[
A
]
def
elemTag
: ClassTag
[
A
]
def
flatMap
(
f:
A => IterableOnce
[
B
]
)
(
implicit
evidence$11:
ClassTag
[
B
]
)
: Array
[
B
]
def
fromIterable
(
coll:
Iterable
[
B
]
)
(
implicit
evidence$9:
ClassTag
[
B
]
)
: Array
[
B
]
protected
def
fromIterableWithSameElemType
(
coll:
Iterable
[
A
]
)
: Array
[
A
]
def
iterator
: Iterator
[
A
]
override
def
knownSize
: Int
The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.
The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.
def
length
: Int
def
map
(
f:
A => B
)
(
implicit
evidence$10:
ClassTag
[
B
]
)
: Array
[
B
]
protected
def
newBuilder
: Builder
[
A, Repr
]
Creates a new builder.
Creates a new builder.
override
def
view
: View
[
A
]
A view representing the elements of this collection.
A view representing the elements of this collection.
def
zip
(
xs:
IterableOnce
[
B
]
)
(
implicit
evidence$13:
ClassTag
[
B
]
)
: Array
[
(
A, B
)
]