1Lazy_backtrack(3) OCaml library Lazy_backtrack(3)
2
3
4
6 Lazy_backtrack - no description
7
9 Module Lazy_backtrack
10
12 Module Lazy_backtrack
13 : sig end
14
15
16
17
18
19
20
21 type ('a, 'b) t
22
23
24
25
26 type log
27
28
29
30
31
32 val force : ('a -> 'b) -> ('a, 'b) t -> 'b
33
34
35
36
37 val create : 'a -> ('a, 'b) t
38
39
40
41
42 val get_arg : ('a, 'b) t -> 'a option
43
44
45
46
47 val get_contents : ('a, 'b) t -> ('a, 'b) Either.t
48
49
50
51
52 val create_forced : 'b -> ('a, 'b) t
53
54
55
56
57 val create_failed : exn -> ('a, 'b) t
58
59
60
61
62 val log : unit -> log
63
64
65
66
67 val force_logged : log -> ('a -> ('b, 'c) result) -> ('a, ('b, 'c) re‐
68 sult) t -> ('b, 'c) result
69
70
71
72
73 val backtrack : log -> unit
74
75
76
77
78
79
80OCamldoc 2023-01-23 Lazy_backtrack(3)