Package org.projog.core.predicate.builtin.list
package org.projog.core.predicate.builtin.list
Predicates for working with list data structures.
-
ClassesClassDescription
append(X,Y,Z)- concatenates two lists.append(ListOfLists, List)- concatenates a list of lists.atomic_list_concat(List,Separator,Atom)/atomic_list_concat(List,Atom)delete(X,Y,Z)- remove all occurrences of a term from a list.min_list/max_listmin_list(Min, List)- True if Min is the smallest number in List.flatten(X,Y)- flattens a nested list.foldl(PredicateName, Values, Start, Result)- combines elements of a list into a single term.keysort(X,Y)- sorts a list of key/value pairs.last(X,Y)- finds the last element of a list.length(X,Y)- determines the length of a list.maplist(X,Y)/maplist(X,Y,Z)- determines if a goal succeeds against elements of a list.member(E, L)- enumerates members of a list.memberchk(E, L)- checks is a term is a member of a list.nth0(X,Y,Z)/nth1(X,Y,Z)- examines an element of a list.pairs_keys(Pairs,Keys)/pairs_values(Pairs,Values)- get keys or values from list of Key-Value pairs.random_permutation(X,Y)- produces a random permutation of a list.reverse(X,Y)- reverses the order of elements in a list.select(X,Y,Z)- removes an element from a list.msort(X,Y)- sorts a list.sort(X,Y)- sorts a list and removes duplicates.include(X,Y,Z)- filters a list by a goal.subset(X,Y)- checks if a set is a subset.subtract(X,Y,Z)- removes elements from a list.sum_list(X,Y)- sums the elements of a list.