Skip to content

Instantly share code, notes, and snippets.

@pmsanford
Created December 24, 2014 19:06
Show Gist options
  • Save pmsanford/167d67f066f414502a1f to your computer and use it in GitHub Desktop.
Save pmsanford/167d67f066f414502a1f to your computer and use it in GitHub Desktop.
use std::iter::repeat;
fn main() {
let vec: Vec<_> = repeat("a").take(50).collect();
let string: String = repeat("b").take(50).collect();
println!("{}", vec);
println!("{}", string);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment