mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 01:44:04 +00:00
Empowering everyone to build reliable and efficient software.
![]() 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.