Advertisement
Guest User

I would have done this with a return statement

a guest
Dec 9th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.13 KB | None | 0 0
  1. if frobnicatable then
  2.    let x = frobnicate () in
  3.    if frob_ok x then
  4.        x
  5.    else
  6.       fallback  ()
  7. else
  8.    fallback ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement