Module Ocaml_utils.Lazy_backtrack
Source
Sourceval force : ('a -> 'b) -> ('a, 'b) t -> 'b
Sourceval create : 'a -> ('a, 'b) t
Sourceval get_arg : ('a, 'b) t -> 'a option
Sourceval create_forced : 'b -> ('a, 'b) t
Sourceval create_failed : exn -> ('a, 'b) t
Sourceval is_val : ('a, 'b) t -> bool
Sourcetype ('a, 'b) eval =
| Done of 'b
| Raise of exn
| Thunk of 'a
Sourceval force_logged_408 :
log ->
('a -> 'b option) ->
('a, 'b option) t ->
'b option