rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/rust
2019-10-21 10:18:17 +02:00

13 lines
278 B
Plaintext

use core::*;
fn main() {
for ["Alice", "Bob", "Carol"].each |&name| {
do task::spawn {
let v = rand::Rng().shuffle([1, 2, 3]);
for v.each |&num| {
io::print(fmt!("%s says: '%d'\n", name, num))
}
}
}
}