miniblog.
← Back to all posts
Wilfred Hughes
Apr 26, 2021 at 07:26
TIL you can return values from loops in Rust:
https://doc.rust-lang.org/reference/expressions/loop-expr.html#continue-expressions
I've only ever seen this in Common Lisp / Elisp!
Loop expressions - The Rust Reference