Dotty Documentation

0.17.0-bin-SNAPSHOT

object Arrays
extends Object with Serializable

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

[-] Constructors

[-] Members

[+] def newArray ( componentType: Class [ Nothing <: Any ] , returnType: Class [ Arr ] , dimensions: Array [ Int ] ) : Arr

Create an array of a reference type T.

[+] def newGenericArray ( 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.

[+] def seqToArray ( xs: Seq [ T ] , clazz: Class [ Nothing <: Any ] ) : Array [ T ]

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