node-cooper - v0.2.0
    Preparing search index...

    Class Tuple

    A CASC tuple (CASC.md §6.11) -- (52.52, 13.405). Fixed-arity, frozen, and deliberately not an Array: the spec requires an implementation to carry a real tuple type through parsing, merging, and the final result, since a tuple is never merged element-wise or appended to, only replaced wholesale (§8.3). Mirrors the Elixir implementation returning a real Elixir tuple.

    JS has no native tuple, so the two-way conversion helpers target the closest fit, a plain array: toArray() / Tuple.fromArray(). JSON.stringify renders a tuple as an array.

    Index
    items: readonly unknown[]
    • Parameters

      • _depth: number
      • options: object
      • inspect: (value: unknown, options: object) => string

      Returns string

    • Returns Iterator<unknown, any, any>

    • Parameters

      • index: number

        negative counts from the end, like Array#at

      Returns unknown