https://toitlang.org/ logo
Early exit from a lambda
# help
a
I tried
return
to exit early in one condition from a lambda, But of course
Can't explicitly return from within a lambda
Is there a way to stop execution of a lambda part way through?
f
I don't remember if that only works for blocks or lambdas as well but
continue.<name>
might work.
Copy code
foo::
  ...
  continue.foo