@@ -32,23 +32,23 @@ val singleton : 'a -> 'a t
32
32
val init : int -> (int -> 'a ) -> 'a t
33
33
(* * [init n f] corresponds to the sequence [f 0; f 1; ...; f (n-1)].
34
34
@raise Invalid_argument if n is negative.
35
- @since NEXT_RELEASE *)
35
+ @since 3.10 *)
36
36
37
37
val repeat : ?n : int -> 'a -> 'a t
38
38
(* * [repeat ~n x] repeats [x] [n] times then stops. If [n] is omitted,
39
39
then [x] is repeated forever. *)
40
40
41
41
val forever : (unit -> 'a ) -> 'a t
42
42
(* * [forever f] corresponds to the infinit sequence containing all the [f ()].
43
- @since NEXT_RELEASE *)
43
+ @since 3.10 *)
44
44
45
45
val cycle : 'a t -> 'a t
46
46
(* * Cycle through the iterator infinitely. The iterator shouldn't be empty. *)
47
47
48
48
val iterate : ('a -> 'a ) -> 'a -> 'a t
49
49
(* * [iterate f a] corresponds to the infinit sequence containing [a], [f a], [f (f a)],
50
50
...]
51
- @since NEXT_RELEASE *)
51
+ @since 3.10 *)
52
52
53
53
val unfold : ('b -> ('a * 'b ) option ) -> 'b -> 'a t
54
54
(* * [unfold f acc] calls [f acc] and:
@@ -74,7 +74,7 @@ val tail_exn : 'a t -> 'a t
74
74
75
75
val uncons : 'a t -> ('a * 'a t ) option
76
76
(* * [uncons xs] return [None] if [xs] is empty other
77
- @since NEXT_RELEASE *)
77
+ @since 3.10 *)
78
78
79
79
val equal : 'a equal -> 'a t equal
80
80
(* * Equality step by step. Eager. *)
@@ -92,11 +92,11 @@ val foldi : ('a -> int -> 'b -> 'a) -> 'a -> 'b t -> 'a
92
92
(* * [fold_lefti f init xs] applies [f acc i x] where [acc] is the result of the previous
93
93
computation or [init] for the first one, [i] is the index in the sequence (starts at
94
94
0) and [x] is the element of the sequence.
95
- @since NEXT_RELEASE *)
95
+ @since 3.10 *)
96
96
97
97
val fold_lefti : ('a -> int -> 'b -> 'a ) -> 'a -> 'b t -> 'a
98
98
(* * Alias of {!foldi}.
99
- @since NEXT_RELEASE *)
99
+ @since 3.10 *)
100
100
101
101
val iter : ('a -> unit ) -> 'a t -> unit
102
102
@@ -127,7 +127,7 @@ val product_with : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t
127
127
128
128
val map_product : ('a -> 'b -> 'c ) -> 'a t -> 'b t -> 'c t
129
129
(* * Alias of {!product_with}.
130
- @since NEXT_RELEASE *)
130
+ @since 3.10 *)
131
131
132
132
val product : 'a t -> 'b t -> ('a * 'b ) t
133
133
(* * Specialization of {!product_with} producing tuples. *)
@@ -159,29 +159,29 @@ val exists : ('a -> bool) -> 'a t -> bool
159
159
val find : ('a -> bool ) -> 'a t -> 'a option
160
160
(* * [find p [a1; ...; an]] return [Some ai] for the first [ai] satisfying the predicate
161
161
[p] and return [None] otherwise.
162
- @since NEXT_RELEASE *)
162
+ @since 3.10 *)
163
163
164
164
val find_map : ('a -> 'b option ) -> 'a t -> 'b option
165
165
(* * [find f [a1; ...; an]] return [Some (f ai)] for the first [ai] such that
166
166
[f ai = Some _] and return [None] otherwise.
167
- @since NEXT_RELEASE *)
167
+ @since 3.10 *)
168
168
169
169
val scan : ('a -> 'b -> 'a ) -> 'a -> 'b t -> 'a t
170
170
(* * [scan f init xs] is the sequence containing the intermediate result of
171
171
[fold f init xs].
172
- @since NEXT_RELEASE *)
172
+ @since 3.10 *)
173
173
174
174
val flat_map : ('a -> 'b t ) -> 'a t -> 'b t
175
175
val concat_map : ('a -> 'b t ) -> 'a t -> 'b t
176
176
(* * Aliass of {!flat_map}
177
- @since NEXT_RELEASE *)
177
+ @since 3.10 *)
178
178
179
179
val filter_map : ('a -> 'b option ) -> 'a t -> 'b t
180
180
181
181
val flatten : 'a t t -> 'a t
182
182
val concat : 'a t t -> 'a t
183
183
(* * Alias of {!flatten}.
184
- @since NEXT_RELEASE *)
184
+ @since 3.10 *)
185
185
186
186
val range : int -> int -> int t
187
187
@@ -199,7 +199,7 @@ val fold2 : ('acc -> 'a -> 'b -> 'acc) -> 'acc -> 'a t -> 'b t -> 'acc
199
199
200
200
val fold_left2 : ('acc -> 'a -> 'b -> 'acc ) -> 'acc -> 'a t -> 'b t -> 'acc
201
201
(* * Alias for {!fold2}.
202
- @since NEXT_RELEASE *)
202
+ @since 3.10 *)
203
203
204
204
val map2 : ('a -> 'b -> 'c ) -> 'a t -> 'b t -> 'c t
205
205
(* * Map on two collections at once. Stop as soon as one of the
@@ -216,7 +216,7 @@ val merge : 'a ord -> 'a t -> 'a t -> 'a t
216
216
217
217
val sorted_merge : 'a ord -> 'a t -> 'a t -> 'a t
218
218
(* * Alias of {!merge}.
219
- @since NEXT_RELEASE *)
219
+ @since 3.10 *)
220
220
221
221
val zip : 'a t -> 'b t -> ('a * 'b ) t
222
222
(* * Combine elements pairwise. Stop as soon as one of the lists stops. *)
@@ -226,7 +226,7 @@ val unzip : ('a * 'b) t -> 'a t * 'b t
226
226
227
227
val split : ('a * 'b ) t -> 'a t * 'b t
228
228
(* * Alias of {!unzip}.
229
- @since NEXT_RELEASE *)
229
+ @since 3.10 *)
230
230
231
231
val zip_i : 'a t -> (int * 'a ) t
232
232
(* * [zip_i seq] zips the index of each element with the element itself.
0 commit comments