]> Repositorios git - scryer-prolog.git/commitdiff
remove group_pairs_by_key/2, which is now provided by library(pairs)
authorMarkus Triska <[email protected]>
Tue, 2 Mar 2021 18:58:20 +0000 (19:58 +0100)
committerMarkus Triska <[email protected]>
Tue, 2 Mar 2021 18:58:20 +0000 (19:58 +0100)
src/lib/clpb.pl

index 0310e775e6ec23c8843e8dd258d53a945b8dcc2a..75a3828277bc45b483792dcc8e943b7f8025327b 100644 (file)
    Compatibility predicates.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
 
-group_pairs_by_key([], []).
-group_pairs_by_key([M-N|T0], [M-[N|TN]|T]) :-
-    same_key(M, T0, TN, T1),
-    group_pairs_by_key(T1, T).
-
-same_key(M0, [M-N|T0], [N|TN], T) :-
-    M0 == M,
-    !,
-    same_key(M, T0, TN, T).
-same_key(_, L, [], L).
-
 must_be(What, Term) :- must_be(What, unknown(Term)-1, Term).
 
 must_be(acyclic, Where, Term) :- !,