ArrayOps

object ArrayOps

Array modifications helper.

class Object
trait Matchable
class Any

Value members

Concrete methods

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.

Makes a copy of a portions of an array with elements mapped. Does not require ClassTag instance.

final def copyOf[K](array: Array[K], newLength: Int): Array[K]

Makes a copy of an array with new length.

Makes a copy of an array with new length.

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.

Creates a new array based on the type of the example item provided. Does not require ClassTag instance.