-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Input code
fn parse_data(data: &str) -> impl Iterator<Item = Vec<isize>> + use<'_> {
data.lines().map(|x| {
x.split_ascii_whitespace()
.map(|y| { y.parse::<isize>().expect("I thought this was a number") })
.collect::<Vec<isize>>()
})
}Output code
fn parse_data(data: &str) -> impl Iterator<Item = Vec<isize>> + use<'_> {
data.lines().map(|x| {
x.split_ascii_whitespace()
.map(|y| { y.parse::<isize>().expect("I thought this was a number") })
.collect::<Vec<isize>>()
})
}Additional context
namnm
Metadata
Metadata
Assignees
Labels
No labels
