GArray

    A built-in data structure that holds a sequence of elements.

    Array.swift:25
    class GArray

    An array data structure that can contain a sequence of elements of any type. Elements are accessed by a numerical index starting at 0. Negative indices are used to count from the back (-1 is the last element, -2 is the second to last, etc.).

    Example:

    Arrays can be concatenated using the + operator:

    Differences between packed arrays, typed arrays, and untyped arrays: Packed arrays are generally faster to iterate on and modify compared to a typed array of the same type (e.g. PackedInt64Array versus Arrayinteger). Also, packed arrays consume less memory. As a downside, packed arrays are less flexible as they don’t offer as many convenience methods such as Array/map(method:). Typed arrays are in turn faster to iterate on and modify than untyped arrays.

    Citizens in SwiftGodot

    Conformances

    Typealiases

    Type members

    Instance members

    Show obsolete interfaces (1)

    Hide obsolete interfaces

    Type features

    Instance features

    Show obsolete interfaces (2)

    Hide obsolete interfaces