Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- high_and_low("8 3 -5 42 -1 0 0 -9 4 7 4 -4");
- }
- fn high_and_low(numbers: &str) {
- println!("{:?}",numbers.split(" ").map(|n| n.parse::<i32>()).collect::<Vec<i32>>());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement