UniTO/tesi/examples/ex1.ml

7 lines
142 B
OCaml
Raw Permalink Normal View History

2020-06-04 23:48:32 +02:00
external observe : 'a -> 'b = "observe"
external guard : 'a -> 'b = "guard"
let f1 = function
| true -> observe 1
| false -> observe 0