OSRS Plugin API
    Preparing search index...

    Class ROArrayType<T>

    Generic typing for an immutable array type. These types are usable with lua's hash operator to get the size of the array, and should all be accessed via 1-indexing, per lua's normal convention (e.g. a:get(a:size()) returns the last value).

    Type Parameters

    • T
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Returns true if the array is empty.

      Returns boolean

    • Gets an element in the array. Will return nil if out of bounds.

      Parameters

      • n: number

        the index in the array.

      Returns T

      value at this index.

    • Returns the number of elements in the array.

      Returns number