buffer-and-slice
buffer-and-slice
com.github.arturopala.bufferandslice
buffer-and-slice
/
com.github.arturopala.bufferandslice
/
ArrayOps
ArrayOps
object
ArrayOps
Array modifications helper.
Graph
Super types
class
Object
trait
Matchable
class
Any
Value members
Value members
Methods
final
def
copyOf
[K](array:
Array
[
K
], newLength:
Int
):
Array
[
K
]
Makes a copy of an array with new length.
final
def
copyMapOf
[K, T](from:
Int
, to:
Int
, array:
Array
[
K
], map:
K
=>
T
):
Array
[
T
]
Makes a copy of a portions of an array with elements mapped.
Does not require ClassTag instance.
final
def
newArray
[T](exampleItem:
T
, length:
Int
):
Array
[
T
]
Creates a new array based on the type of the example item provided.
Does not require ClassTag instance.