[ library(listut) | Reference Manual | Alphabetic Index ]
nth1(?I, ?List, -Elem)
Access nth element of a list
- I
- Integer position index, counting from 1
- List
- A list
- Elem
- Any term
Description
Succeeds when Elem is the Nth member of List, counting the
first as element 1.
Modes and Determinism
- nth1(+, +, -) is det
- nth1(-, +, -) is nondet
- nth1(-, -, -) is nondet
See Also
nth0 / 3, nth0 / 4, nth1 / 4