1
0
Fork 0

Improve day 9

This commit is contained in:
Lars Martens 2023-12-09 12:58:33 +01:00
parent a040d7f517
commit b146637ad2
Signed by: haselkern
GPG key ID: B5CF1F363C179AD4
2 changed files with 20 additions and 25 deletions

View file

@ -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,