ref: 8c0fab2ccc7f5d5c4a611a4de4078c7af21963da
dir: /libstd/try.myr/
use "option.use"
use "fmt.use"
pkg std =
generic try : (v : option(@a) -> @a)
;;
generic try = {v
match v
| `Some x: -> x
| `None: fatal(1, "expected `Some @a, got `None\n")
;;
}