You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turtle Kitty edited this page Aug 9, 2015
·
2 revisions
return
This operator terminates a function and returns the value given. As functions return their final expression's value by default, this operator is only necessary for early termination.
(fun foo (x)
(when (= x 0)
(return42))
(* x 7))
(foo0) -> 42
(foo2) -> 14