fix(list): add "since" for sorted_diff

Co-authored-by: Simon Cruanes <simon.cruanes.2007@m4x.org>
This commit is contained in:
favonia 2021-05-22 21:05:25 -05:00
parent 130f0a63bb
commit f6829d1219

View file

@ -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]