Documentation Prolog Predicate Reference lists list_to_set/2

list_to_set/2

Turn list into set.

Description

list_to_set( +list, ?list )

list_to_set(List, Set) is true if and only if Set has the same elements that List, but without duplicates and respecting their original order.

Implementation