mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
fix(list): add "since" for sorted_diff
Co-authored-by: Simon Cruanes <simon.cruanes.2007@m4x.org>
This commit is contained in:
parent
130f0a63bb
commit
f6829d1219
1 changed files with 3 additions and 2 deletions
|
|
@ -502,9 +502,10 @@ val sorted_merge : cmp:('a -> 'a -> int) -> 'a list -> 'a list -> 'a list
|
||||||
the given comparison function [cmp]. *)
|
the given comparison function [cmp]. *)
|
||||||
|
|
||||||
val sorted_diff : cmp:('a -> 'a -> int) -> 'a list -> 'a list -> 'a list
|
val sorted_diff : cmp:('a -> 'a -> int) -> 'a list -> 'a list -> 'a list
|
||||||
(** [sorted_merge ~cmp l1 l2] returns the elements in [l1] that are not in [l2].
|
(** [sorted_diff ~cmp l1 l2] returns the elements in [l1] that are not in [l2].
|
||||||
Both lists are assumed to be sorted with respect to [cmp] and
|
Both lists are assumed to be sorted with respect to [cmp] and
|
||||||
duplicate elements are treated individually. *)
|
duplicate elements are treated individually.
|
||||||
|
@since NEXT_RELEASE *)
|
||||||
|
|
||||||
val sort_uniq : cmp:('a -> 'a -> int) -> 'a list -> 'a list
|
val sort_uniq : cmp:('a -> 'a -> int) -> 'a list -> 'a list
|
||||||
(** [sort_uniq ~cmp l] sorts the list [l] using the given comparison function [cmp]
|
(** [sort_uniq ~cmp l] sorts the list [l] using the given comparison function [cmp]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue