Source file applicative_signatures_intf.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
open! Base
open! Import
open Subtyping
module type Applicative_general = sig
type ('inner, 'outer, 'kind) accessor
type 'a optional_args
type ('a, 'e) t
val map
: ((unit -> 'a -> 'b, unit -> 'at -> 'bt, [> many ]) accessor
-> 'at
-> f:('a -> ('b, 'e) t)
-> ('bt, 'e) t)
optional_args
val mapi
: (('i -> 'a -> 'b, unit -> 'at -> 'bt, [> many ]) accessor
-> 'at
-> f:('i Index.t -> 'a -> ('b, 'e) t)
-> ('bt, 'e) t)
optional_args
val all
: (unit -> ('a, 'e) t -> 'a, unit -> 'at -> 'bt, [> many ]) accessor
-> 'at
-> ('bt, 'e) t
val all_unit
: (unit -> (unit, 'e) t -> _, unit -> 'at -> _, [> many_getter ]) accessor
-> 'at
-> (unit, 'e) t
val iter
: ((unit -> 'a -> _, unit -> 'at -> _, [> many_getter ]) accessor
-> 'at
-> f:('a -> (unit, 'e) t)
-> (unit, 'e) t)
optional_args
val iteri
: (('i -> 'a -> _, unit -> 'at -> _, [> many_getter ]) accessor
-> 'at
-> f:('i Index.t -> 'a -> (unit, 'e) t)
-> (unit, 'e) t)
optional_args
val sum
: ((module Container.Summable with type t = 'sum)
-> (unit -> 'a -> _, unit -> 'at -> _, [> many_getter ]) accessor
-> 'at
-> f:('a -> ('sum, 'e) t)
-> ('sum, 'e) t)
optional_args
val sumi
: ((module Container.Summable with type t = 'sum)
-> ('i -> 'a -> _, unit -> 'at -> _, [> many_getter ]) accessor
-> 'at
-> f:('i Index.t -> 'a -> ('sum, 'e) t)
-> ('sum, 'e) t)
optional_args
val count
: ((unit -> 'a -> _, unit -> 'at -> _, [> many_getter ]) accessor
-> 'at
-> f:('a -> (bool, 'e) t)
-> (int, 'e) t)
optional_args
val counti
: (('i -> 'a -> _, unit -> 'at -> _, [> many_getter ]) accessor
-> 'at
-> f:('i Index.t -> 'a -> (bool, 'e) t)
-> (int, 'e) t)
optional_args
val map_reduce
: ((unit -> 'a -> _, unit -> 'at -> _, [> many_getter ]) accessor
-> 'at
-> empty:'b
-> combine:('b -> 'b -> 'b)
-> f:('a -> ('b, 'e) t)
-> ('b, 'e) t)
optional_args
val map_reducei
: (('i -> 'a -> _, unit -> 'at -> _, [> many_getter ]) accessor
-> 'at
-> empty:'b
-> combine:('b -> 'b -> 'b)
-> f:('i Index.t -> 'a -> ('b, 'e) t)
-> ('b, 'e) t)
optional_args
val map_reduce_nonempty
: ((unit -> 'a -> _, unit -> 'at -> _, [> nonempty_getter ]) accessor
-> 'at
-> combine:('b -> 'b -> 'b)
-> f:('a -> ('b, 'e) t)
-> ('b, 'e) t)
optional_args
val map_reduce_nonemptyi
: (('i -> 'a -> _, unit -> 'at -> _, [> nonempty_getter ]) accessor
-> 'at
-> combine:('b -> 'b -> 'b)
-> f:('i Index.t -> 'a -> ('b, 'e) t)
-> ('b, 'e) t)
optional_args
end
module type Applicative_without_return_general = sig
type ('inner, 'outer, 'kind) accessor
type 'a optional_args
type ('a, 'd, 'e) t
val map
: ((unit -> 'a -> 'b, unit -> 'at -> 'bt, [> nonempty ]) accessor
-> 'at
-> f:('a -> ('b, 'd, 'e) t)
-> ('bt, 'd, 'e) t)
optional_args
val mapi
: (('i -> 'a -> 'b, unit -> 'at -> 'bt, [> nonempty ]) accessor
-> 'at
-> f:('i Index.t -> 'a -> ('b, 'd, 'e) t)
-> ('bt, 'd, 'e) t)
optional_args
val iter
: ((unit -> 'a -> _, unit -> 'at -> _, [> nonempty_getter ]) accessor
-> 'at
-> f:('a -> (unit, 'd, 'e) t)
-> (unit, 'd, 'e) t)
optional_args
val iteri
: (('i -> 'a -> _, unit -> 'at -> _, [> nonempty_getter ]) accessor
-> 'at
-> f:('i Index.t -> 'a -> (unit, 'd, 'e) t)
-> (unit, 'd, 'e) t)
optional_args
val sum
: ((module Container.Summable with type t = 'sum)
-> (unit -> 'a -> _, unit -> 'at -> _, [> nonempty_getter ]) accessor
-> 'at
-> f:('a -> ('sum, 'd, 'e) t)
-> ('sum, 'd, 'e) t)
optional_args
val sumi
: ((module Container.Summable with type t = 'sum)
-> ('i -> 'a -> _, unit -> 'at -> _, [> nonempty_getter ]) accessor
-> 'at
-> f:('i Index.t -> 'a -> ('sum, 'd, 'e) t)
-> ('sum, 'd, 'e) t)
optional_args
val count
: ((unit -> 'a -> _, unit -> 'at -> _, [> nonempty_getter ]) accessor
-> 'at
-> f:('a -> (bool, 'd, 'e) t)
-> (int, 'd, 'e) t)
optional_args
val counti
: (('i -> 'a -> _, unit -> 'at -> _, [> nonempty_getter ]) accessor
-> 'at
-> f:('i Index.t -> 'a -> (bool, 'd, 'e) t)
-> (int, 'd, 'e) t)
optional_args
val all
: (unit -> ('a, 'd, 'e) t -> 'a, unit -> 'at -> 'bt, [> nonempty ]) accessor
-> 'at
-> ('bt, 'd, 'e) t
val all_unit
: (unit -> (unit, 'd, 'e) t -> _, unit -> 'at -> _, [> nonempty_getter ]) accessor
-> 'at
-> (unit, 'd, 'e) t
val map_reduce_nonempty
: ((unit -> 'a -> _, unit -> 'at -> _, [> nonempty_getter ]) accessor
-> 'at
-> combine:('b -> 'b -> 'b)
-> f:('a -> ('b, 'd, 'e) t)
-> ('b, 'd, 'e) t)
optional_args
val map_reduce_nonemptyi
: (('i -> 'a -> _, unit -> 'at -> _, [> nonempty_getter ]) accessor
-> 'at
-> combine:('b -> 'b -> 'b)
-> f:('i Index.t -> 'a -> ('b, 'd, 'e) t)
-> ('b, 'd, 'e) t)
optional_args
end
module type Functor_s3 = sig
type ('inner, 'outer, 'kind) accessor
type ('a, 'd, 'e) t
val map
: (unit -> 'a -> 'b, unit -> 'at -> 'bt, [> field ]) accessor
-> 'at
-> f:('a -> ('b, 'd, 'e) t)
-> ('bt, 'd, 'e) t
val mapi
: ('i -> 'a -> 'b, unit -> 'at -> 'bt, [> field ]) accessor
-> 'at
-> f:('i Index.t -> 'a -> ('b, 'd, 'e) t)
-> ('bt, 'd, 'e) t
val all
: (unit -> ('a, 'd, 'e) t -> 'a, unit -> 'at -> 'bt, [> field ]) accessor
-> 'at
-> ('bt, 'd, 'e) t
end
module type Functor_s2 = sig
type ('a, 'd) t
include Functor_s3 with type ('a, 'd, _) t := ('a, 'd) t
end
module type Functor_s = sig
type 'a t
include Functor_s2 with type ('a, _) t := 'a t
end
module type Applicative_without_return_s3 =
Applicative_without_return_general with type 'a optional_args := 'a
module type Applicative_s2 = Applicative_general with type 'a optional_args := 'a
module type Applicative_without_return_s2 = sig
type ('a, 'e) t
include Applicative_without_return_s3 with type ('a, _, 'e) t := ('a, 'e) t
end
module type Applicative_s = sig
type 'a t
include Applicative_s2 with type ('a, _) t := 'a t
end
module type Applicative_without_return_s = sig
type 'a t
include Applicative_without_return_s2 with type ('a, _) t := 'a t
end
module type Monad_without_return_s3 =
Applicative_without_return_general
with type 'a optional_args := ?how:[ `Parallel | `Sequential ] -> 'a
module type Monad_s2 =
Applicative_general
with type 'a optional_args := ?how:[ `Parallel | `Sequential ] -> 'a
module type Monad_without_return_s2 = sig
type ('a, 'e) t
include Monad_without_return_s3 with type ('a, _, 'e) t := ('a, 'e) t
end
module type Monad_s = sig
type 'a t
include Monad_s2 with type ('a, _) t := 'a t
end
module type Monad_without_return_s = sig
type 'a t
include Monad_without_return_s2 with type ('a, _) t := 'a t
end