Skip to content

Array

1 min read

No import is needed.

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

Array

Creates fixed-length arrays whose elements can be accessed with zero-based indices.

public static class Array

alloc

Creates an array of len default-initialized elements.

public static fun alloc<T>(len: int): T[]