summaryrefslogtreecommitdiff
path: root/src/util.mli
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.mli')
-rw-r--r--src/util.mli5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.mli b/src/util.mli
index feb4754b..bc2a1261 100644
--- a/src/util.mli
+++ b/src/util.mli
@@ -56,6 +56,11 @@ end
the list l. As a side-effect, the list might be reordered. *)
val remove_duplicates : 'a list -> 'a list
+(** [remove_dups compare eq l] as remove_duplicates but with parameterised comparison and equality *)
+val remove_dups : ('a -> 'a -> int) -> ('a -> 'a -> bool) -> 'a list -> 'a list
+
+val assoc_maybe : ('a -> 'a -> bool) -> ('a * 'b) list -> 'a -> 'b option
+
(** {2 Option Functions} *)
(** [option_map f None] returns [None], whereas