]> Repositorios git - scryer-prolog.git/commit
ADDED: list_to_set/2, using the first occurrence of each element
authorMarkus Triska <[email protected]>
Wed, 15 Apr 2020 15:49:01 +0000 (17:49 +0200)
committerMark Thom <[email protected]>
Sat, 18 Apr 2020 20:16:40 +0000 (14:16 -0600)
commit16e257ea32621710a829c1e3b7ea6c8b04e76d2e
tree503cba9379f129f6804686a8afd8c7201c1aff00
parent37f1f8ac14e27cd9d6a1e2b18f8e5df1bfed0107
ADDED: list_to_set/2, using the first occurrence of each element

Example:

    ?- list_to_set([B,a,b,a,B,A,b,A], Ls).
       Ls = [B,a,b,A]
    ;  false.
src/prolog/lib/lists.pl