fail on non-list solutions in setof/3 (#1553)
This commit is contained in:
@@ -818,7 +818,8 @@ bagof(Template, Goal, Solution) :-
|
||||
:- non_counted_backtracking iterate_variants_and_sort/3.
|
||||
|
||||
iterate_variants_and_sort([V-Solution0|GroupSolutions], V, Solution) :-
|
||||
sort(Solution0, Solution),
|
||||
sort(Solution0, Solution1),
|
||||
Solution1 = Solution,
|
||||
( GroupSolutions == [] -> !
|
||||
; true
|
||||
).
|
||||
|
||||
Reference in New Issue
Block a user