File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ and type t = (clause * int) list = struct
181
181
type t = elt list [@@ deriving show ]
182
182
183
183
let get_time_stamp = snd
184
+ let equal a b = a = b
184
185
end
185
186
186
187
module DT = Discrimination_tree. Make (TreeIndexable )(MyListClause )
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ module type TimeStampList = sig
56
56
include Elpi_util.Util .Show with type t : = t
57
57
58
58
val get_time_stamp : elt -> int
59
+ val equal : elt -> elt -> bool
59
60
end
60
61
61
62
module Make (K : IndexableTerm ) (D : TimeStampList ) :
@@ -93,7 +94,7 @@ module Make (K : IndexableTerm) (D : TimeStampList) :
93
94
94
95
let remove_index tree ps info =
95
96
try
96
- let ps_set = List. filter (( = ) info) (Trie. find ps tree) in
97
+ let ps_set = List. filter (D. equal info) (Trie. find ps tree) in
97
98
if ps_set = [] then Trie. remove ps tree else Trie. add ps ps_set tree
98
99
with Not_found -> tree
99
100
You can’t perform that action at this time.
0 commit comments