Skip to main content
Version: Next

nth0/3

Description

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

Signature

nth0(?N, ?List, ?Elem)

Where:

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