Did you know? SWI-Prolog is 28 years oldSearch Documentation:
SWI-Prolog owl logoPredicate all_distinct/1