Documentation Prolog Predicate Reference lists take/3

take/3

Retrieve first elements of a list.

Description

take( +integer, +list, -list )

take(N, List, FirstElements) is true if and only if FirstElements is a list consisting of the N first elements of List.

Implementation