Documentation Prolog Predicate Reference lists select/3

select/3

Check if two lists differ in one element.

Description

select( ?term, ?list, ?list )

select(Element, FirstList, SecondList) is true if and only if we get SecondList by removing Element from FirstList.

Implementation