Arrays

scala.runtime.Arrays$
object Arrays

All but the first two operations should be short-circuited and implemented specially by the backend.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Arrays.type

Members list

Concise view

Value members

Concrete methods

Create an array of a reference type T.

Create an array of a reference type T.

Attributes

def newGenericArray[T](length: Int)(implicit tag: ClassTag[T]): Array[T]

Creates an array of some element type determined by the given ClassTag argument. The erased type of applications of this method is Object.

Creates an array of some element type determined by the given ClassTag argument. The erased type of applications of this method is Object.

Attributes

def seqToArray[T](xs: Seq[T], clazz: Class[_]): Array[T]

Convert a sequence to a Java array with element type given by clazz.

Convert a sequence to a Java array with element type given by clazz.

Attributes