Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let five_fives = std::iter::repeat(5).take(5);
- let t: (i32, i32, i32, i32, i32) = five_fives.collect();
- assert_eq!(t, (5, 5, 5, 5, 5));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement