Documentation Prolog Predicate Reference lists nth1/4

nth1/4

Get the Nth element of a list and the rest of elements on it.

Description

nth1( ?integer, ?list, ?term, ?list )

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

Implementation