@@ -66,7 +66,7 @@ val fold_map : f:('acc -> 'a -> 'acc * 'b) -> init:'acc -> 'a list -> 'acc * 'b
66
66
@since 0.14 *)
67
67
68
68
val scan_left : f :('acc -> 'a -> 'acc ) -> init :'acc -> 'a list -> 'acc list
69
- (* * @since NEXT_RELEASE *)
69
+ (* * @since 2.2 *)
70
70
71
71
val fold_map2 : f :('acc -> 'a -> 'b -> 'acc * 'c ) -> init :'acc -> 'a list -> 'b list -> 'acc * 'c list
72
72
(* * [fold_map2] is to [fold_map] what [List.map2] is to [List.map].
@@ -84,29 +84,29 @@ val fold_flat_map : f:('acc -> 'a -> 'acc * 'b list) -> init:'acc -> 'a list ->
84
84
@since 0.14 *)
85
85
86
86
val count : f :('a -> bool ) -> 'a list -> int
87
- (* * @since NEXT_RELEASE *)
87
+ (* * @since 2.2 *)
88
88
89
89
val init : int -> f :(int -> 'a ) -> 'a t
90
90
(* * [init len ~f] is [f 0; f 1; ...; f (len-1)].
91
91
@raise Invalid_argument if len < 0.
92
92
@since 0.6 *)
93
93
94
94
val combine : 'a list -> 'b list -> ('a * 'b ) list
95
- (* * @since NEXT_RELEASE *)
95
+ (* * @since 2.2 *)
96
96
97
97
val combine_gen : 'a list -> 'b list -> ('a * 'b ) gen
98
- (* * @since NEXT_RELEASE *)
98
+ (* * @since 2.2 *)
99
99
100
100
val split : ('a * 'b ) t -> 'a t * 'b t
101
- (* * @since NEXT_RELEASE *)
101
+ (* * @since 2.2 *)
102
102
103
103
val compare : ('a -> 'a -> int ) -> 'a t -> 'a t -> int
104
104
105
105
val compare_lengths : 'a t -> 'b t -> int
106
- (* * @since NEXT_RELEASE *)
106
+ (* * @since 2.2 *)
107
107
108
108
val compare_length_with : 'a t -> int -> int
109
- (* * @since NEXT_RELEASE *)
109
+ (* * @since 2.2 *)
110
110
111
111
val equal : ('a -> 'a -> bool ) -> 'a t -> 'a t -> bool
112
112
@@ -123,10 +123,10 @@ val fold_product : f:('c -> 'a -> 'b -> 'c) -> init:'c -> 'a t -> 'b t -> 'c
123
123
(* * Fold on the cartesian product. *)
124
124
125
125
val cartesian_product : 'a t t -> 'a t t
126
- (* * @since NEXT_RELEASE *)
126
+ (* * @since 2.2 *)
127
127
128
128
val map_product_l : f :('a -> 'b list ) -> 'a list -> 'b list list
129
- (* * @since NEXT_RELEASE *)
129
+ (* * @since 2.2 *)
130
130
val diagonal : 'a t -> ('a * 'a ) t
131
131
(* * All pairs of distinct positions of the list. [list_diagonal l] will
132
132
return the list of [List.nth i l, List.nth j l] if [i < j]. *)
@@ -155,12 +155,12 @@ val sublists_of_len :
155
155
156
156
val intersperse : x :'a -> 'a list -> 'a list
157
157
(* * Insert the first argument between every element of the list.
158
- @since NEXT_RELEASE *)
158
+ @since 2.2 *)
159
159
160
160
val interleave : 'a list -> 'a list -> 'a list
161
161
(* * [interleave [x1…xn] [y1…ym]] is [x1,y1,x2,y2,…] and finishes with
162
162
the suffix of the longest list.
163
- @since NEXT_RELEASE *)
163
+ @since 2.2 *)
164
164
165
165
val pure : 'a -> 'a t
166
166
(* * [pure] is [return]. *)
@@ -201,7 +201,7 @@ val drop_while : f:('a -> bool) -> 'a t -> 'a t
201
201
@since 0.13 *)
202
202
203
203
val take_drop_while : f :('a -> bool ) -> 'a t -> 'a t * 'a t
204
- (* * @since NEXT_RELEASE *)
204
+ (* * @since 2.2 *)
205
205
206
206
val last : int -> 'a t -> 'a t
207
207
(* * [last n l] takes the last [n] elements of [l] (or less if
@@ -225,7 +225,7 @@ val find_pred : f:('a -> bool) -> 'a t -> 'a option
225
225
@since 0.11 *)
226
226
227
227
val find_opt : f :('a -> bool ) -> 'a t -> 'a option
228
- (* * @since NEXT_RELEASE *)
228
+ (* * @since 2.2 *)
229
229
230
230
val find_pred_exn : f :('a -> bool ) -> 'a t -> 'a
231
231
(* * Unsafe version of {!find_pred}.
@@ -257,16 +257,16 @@ val filter_map : f:('a -> 'b option) -> 'a t -> 'b t
257
257
Map and remove elements at the same time. *)
258
258
259
259
val keep_some : 'a option t -> 'a t
260
- (* * @since NEXT_RELEASE *)
260
+ (* * @since 2.2 *)
261
261
262
262
val keep_ok : ('a , _ ) Result .result t -> 'a t
263
- (* * @since NEXT_RELEASE *)
263
+ (* * @since 2.2 *)
264
264
265
265
val all_some : 'a option t -> 'a t option
266
- (* * @since NEXT_RELEASE *)
266
+ (* * @since 2.2 *)
267
267
268
268
val all_ok : ('a , 'err ) Result .result t -> ('a t , 'err ) Result .result
269
- (* * @since NEXT_RELEASE *)
269
+ (* * @since 2.2 *)
270
270
271
271
val sorted_merge : cmp :('a -> 'a -> int ) -> 'a list -> 'a list -> 'a list
272
272
(* * Merges elements from both sorted list. *)
@@ -316,21 +316,21 @@ val iteri : f:(int -> 'a -> unit) -> 'a t -> unit
316
316
itself as second argument. *)
317
317
318
318
val iteri2 : f :(int -> 'a -> 'b -> unit ) -> 'a t -> 'b t -> unit
319
- (* * @since NEXT_RELEASE *)
319
+ (* * @since 2.2 *)
320
320
321
321
val foldi : f :('b -> int -> 'a -> 'b ) -> init :'b -> 'a t -> 'b
322
322
(* * Like [fold] but it also passes in the index of each element to the folded function. Tail-recursive. *)
323
323
324
324
val foldi2 : f :('c -> int -> 'a -> 'b -> 'c ) -> init :'c -> 'a t -> 'b t -> 'c
325
- (* * @since NEXT_RELEASE *)
325
+ (* * @since 2.2 *)
326
326
327
327
val get_at_idx : int -> 'a t -> 'a option
328
328
(* * Get by index in the list.
329
329
If the index is negative, it will get element starting from the end
330
330
of the list. *)
331
331
332
332
val nth_opt : 'a t -> int -> 'a option
333
- (* * @since NEXT_RELEASE *)
333
+ (* * @since 2.2 *)
334
334
335
335
val get_at_idx_exn : int -> 'a t -> 'a
336
336
(* * Get the i-th element, or
0 commit comments