@@ -503,7 +503,7 @@ val all_ok : ('a, 'err) result t -> ('a t, 'err) result
503
503
val sorted_mem : cmp :(('a -> 'a -> int ) [@ keep_label]) -> 'a -> 'a list -> bool
504
504
(* * [sorted_mem ~cmp x l] and [mem x l] give the same result for any sorted list [l],
505
505
but potentially more efficiently.
506
- @since NEXT_RELEASE *)
506
+ @since 3.5 *)
507
507
508
508
val sorted_merge : cmp :(('a -> 'a -> int ) [@ keep_label]) -> 'a list -> 'a list -> 'a list
509
509
(* * [sorted_merge ~cmp l1 l2] merges elements from both sorted list using
@@ -517,7 +517,7 @@ val sorted_diff : cmp:(('a -> 'a -> int) [@keep_label]) -> 'a list -> 'a list ->
517
517
It is the left inverse of [sorted_merge]; that is,
518
518
[sorted_diff ~cmp (sorted_merge ~cmp l1 l2) l2]
519
519
is always equal to [l1] for sorted lists [l1] and [l2].
520
- @since NEXT_RELEASE *)
520
+ @since 3.5 *)
521
521
522
522
val sort_uniq : cmp :(('a -> 'a -> int ) [@ keep_label]) -> 'a list -> 'a list
523
523
(* * [sort_uniq ~cmp l] sorts the list [l] using the given comparison function [cmp]
@@ -536,7 +536,7 @@ val sorted_diff_uniq : cmp:(('a -> 'a -> int) [@keep_label]) -> 'a list -> 'a li
536
536
for example, [sorted_diff_uniq ~cmp [1;1;1;2;2] [1;2;2;2]] would be [[1]].
537
537
[sorted_diff_uniq ~cmp l1 l2] and [uniq_succ ~eq (sorted_diff ~cmp l1 l2)]
538
538
always give the same result for sorted [l1] and [l2] and compatible [cmp] and [eq].
539
- @since NEXT_RELEASE *)
539
+ @since 3.5 *)
540
540
541
541
val is_sorted : cmp :(('a -> 'a -> int ) [@ keep_label]) -> 'a list -> bool
542
542
(* * [is_sorted ~cmp l] returns [true] iff [l] is sorted (according to given order).
@@ -557,7 +557,7 @@ val sorted_remove : cmp:(('a -> 'a -> int) [@keep_label]) -> ?all:bool -> 'a ->
557
557
is equal to [l] for any sorted list [l].
558
558
@param all if true then all occurrences of [x] will be removed. Otherwise, only the first
559
559
[x] will be removed (if any). Default [false] (only the first will be removed).
560
- @since NEXT_RELEASE *)
560
+ @since 3.5 *)
561
561
562
562
val uniq_succ : eq :(('a -> 'a -> bool ) [@ keep_label]) -> 'a list -> 'a list
563
563
(* * [uniq_succ ~eq l] removes duplicate elements that occur one next to the other.
0 commit comments