Pacote
    Preparing search index...

    Function item

    • Returns the element at an index, counting negative indexes from the end.

      Type Parameters

      • T

      Parameters

      • index: number

        Element index; negative values count from the end.

      • list: LinkedList<T>

        Linked list to search.

      Returns Option<T>

      The element at the index, or None when it is out of bounds.

      Use at().