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
It might be helpful to note that next can take a parameter, which will then be the value of that next statement (the same way return does). This is useful to know when writing a code block for something.reduce{}, for instance, where it's probably important that the code block not return a nil.
Hmm. Is this also true for the break statement?
The text was updated successfully, but these errors were encountered:
Thanks @drosehn! We've got a specific repo for these issues (see above). Please next time open it there. I just opened an issue referencing this on crystal-lang/crystal-book#97.
In the description for
next
at:https://crystal-lang.org/docs/syntax_and_semantics/next.html
It might be helpful to note that
next
can take a parameter, which will then be the value of thatnext
statement (the same wayreturn
does). This is useful to know when writing a code block forsomething.reduce{}
, for instance, where it's probably important that the code block not return anil
.Hmm. Is this also true for the
break
statement?The text was updated successfully, but these errors were encountered: