Improve day 9
This commit is contained in:
parent
a040d7f517
commit
b146637ad2
2 changed files with 20 additions and 25 deletions
|
|
@ -7,7 +7,7 @@ use std::{
|
|||
/// Parse a whitespace separated list of things.
|
||||
///
|
||||
/// Panics on parse error.
|
||||
pub fn parse_ws_separated<T>(s: &str) -> impl Iterator<Item = T> + '_
|
||||
pub fn parse_ws_separated<T>(s: &str) -> impl DoubleEndedIterator<Item = T> + '_
|
||||
where
|
||||
T: FromStr,
|
||||
<T as FromStr>::Err: Debug,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue