Skip to main content
Version: Next

nth1/3

Description

nth1/3 is a predicate that accesses the Nth element of a list (1-indexed).

Signature

nth1(?N, ?List, ?Elem)

Where:

  • N is the index (starting from 1).
  • List is the list.
  • Elem is the element at position N.