Documentation Prolog Predicate Reference lists exclude/3

exclude/3

Filter elements for which a goal fails.

Description

exclude( :callable_term, +list, ?list )

exclude(Goal, List, FilterList) is true if and only if FilterList is a list containing only the elements of List that don't satisfy Goal.

Implementation