@@ -5,11 +5,6 @@ open STM
5
5
6
6
module AConf =
7
7
struct
8
- type char_bool_fun = (char -> bool ) fun_
9
-
10
- let pp_char_bool_fun par fmt f =
11
- Format. fprintf fmt (if par then " (%s)" else " %s" ) (Fn. print f)
12
-
13
8
type cmd =
14
9
| Length
15
10
| Get of int
@@ -18,10 +13,10 @@ struct
18
13
| Copy
19
14
| Fill of int * int * char
20
15
| To_list
21
- | For_all of char_bool_fun
22
- | Exists of char_bool_fun
16
+ | For_all of ( char -> bool ) fun_
17
+ | Exists of ( char -> bool ) fun_
23
18
| Mem of char
24
- | Find_opt of char_bool_fun
19
+ | Find_opt of ( char -> bool ) fun_
25
20
(* | Find_index of char_bool_fun since 5.1*)
26
21
| Sort
27
22
| Stable_sort
@@ -38,10 +33,10 @@ struct
38
33
| Copy -> cst0 " Copy" fmt
39
34
| Fill (x , y , z ) -> cst3 pp_int pp_int pp_char " Fill" par fmt x y z
40
35
| To_list -> cst0 " To_list" fmt
41
- | For_all f -> cst1 pp_char_bool_fun " For_all" par fmt f
42
- | Exists f -> cst1 pp_char_bool_fun " Exists" par fmt f
36
+ | For_all f -> cst1 pp_fun_ " For_all" par fmt f
37
+ | Exists f -> cst1 pp_fun_ " Exists" par fmt f
43
38
| Mem x -> cst1 pp_char " Mem" par fmt x
44
- | Find_opt f -> cst1 pp_char_bool_fun " Find_opt" par fmt f
39
+ | Find_opt f -> cst1 pp_fun_ " Find_opt" par fmt f
45
40
(* | Find_index f -> cst1 pp_char_bool_fun "Find_index" par fmt f*)
46
41
| Sort -> cst0 " Sort" fmt
47
42
| Stable_sort -> cst0 " Stable_sort" fmt
0 commit comments