rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/rust

13 lines
278 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
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))
}
}
}
}