klyn.collections.Array.Array
constructor

    public native Array(size as Int)

Description

Creates a new array with a fixed number of elements.

Primitive numeric and boolean slots are initialized to zero / false. Reference-like slots are initialized to null.

    import klyn.collections

    values as Int[] = Int[4]
    print(values)     # f:[0, 0, 0, 0]

Parameters

Parameter | Description
--- | ---
`size` | Number of elements to allocate.

Throws

- ValueException if size is negative.