A.24 library(lists): List Manipulation
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
The SWI-Prolog library
library(lists): List Manipulation
member/2
append/3
append/2
prefix/2
select/3
selectchk/3
select/4
selectchk/4
nextto/3
delete/3
nth0/3
nth1/3
nth0/4
nth1/4
last/2
proper_length/2
same_length/2
reverse/2
permutation/2
flatten/2
clumped/2
subseq/3
max_member/2
min_member/2
max_member/3
min_member/3
sum_list/2
max_list/2
min_list/2
numlist/3
is_set/1
list_to_set/2
intersection/3
union/3
subset/2
subtract/3
Packages
Availability:
:- use_module(
library(lists)
).
(can be autoloaded)
nth0
(
?Index, ?List, ?Elem
)
True when
Elem
is the
Index
’th element of
List
. Counting starts at 0.
Errors
type_error(integer, Index)
if
Index
is not an integer or unbound.
See also
nth1/3
.