Documentation Prolog Predicate Reference lists nth1/3

nth1/3

Get the Nth element of a list.

Description

nth1( ?integer, ?list, ?term )

Same as nth0/3, but the index count starts at 1.

Implementation