changeset 32844 | 044711ee3f21 |
parent 32817 | 4ed308181f7f |
child 33023 | 207c21697a48 |
32843:c8f5a7c8353f | 32844:044711ee3f21 |
---|---|
17 with |
17 with |
18 |
18 |
19 fun peek (Lazy r) = |
19 fun peek (Lazy r) = |
20 (case ! r of |
20 (case ! r of |
21 Expr _ => NONE |
21 Expr _ => NONE |
22 | Result x => SOME x); |
22 | Result res => SOME res); |
23 |
23 |
24 fun lazy e = Lazy (Unsynchronized.ref (Expr e)); |
24 fun lazy e = Lazy (Unsynchronized.ref (Expr e)); |
25 fun value a = Lazy (Unsynchronized.ref (Result (Exn.Result a))); |
25 fun value a = Lazy (Unsynchronized.ref (Result (Exn.Result a))); |
26 |
26 |
27 |
27 |