my rust fork
https://www.rust-lang.org
The last argument of the call must be a block, and the type of this
argument must a function returning bool. `break` and `cont` are
supported in the body of the block, and return `false` or `true` from
the function. When the end of the function is reached, `true` is
implicitly returned.
for vec::all([1, 2, 3]) {|elt|
if elt == 2 { break; }
log(error, elt);
}
Issue #1619
|
||
|---|---|---|
| doc | ||
| man | ||
| mk | ||
| src | ||
| .gitignore | ||
| .gitmodules | ||
| AUTHORS.txt | ||
| configure | ||
| INSTALL.txt | ||
| LICENSE.txt | ||
| Makefile.in | ||
| README.txt | ||
| RELEASES.txt | ||
This is a compiler and suite of associated libraries and documentation for the Rust programming language. See LICENSE.txt for terms of copyright and redistribution. See http://www.rust-lang.org for more information.