To be honest, since I found out for X in iterator is, basically, while Some(x) in iterator.next(), I'm using the latter a lot more than the former.
Conversation
Notices
-
Embed this notice
Biason::Julio::new(); (juliobiason@functional.cafe)'s status on Friday, 06-Dec-2024 05:00:02 JST Biason::Julio::new(); -
Embed this notice
Biason::Julio::new(); (juliobiason@functional.cafe)'s status on Friday, 06-Dec-2024 05:01:30 JST Biason::Julio::new(); Sure, I still need to make the iterator explicitly, and make it mutable, but I don't see an issue with that...
-
Embed this notice
Biason::Julio::new(); (juliobiason@functional.cafe)'s status on Friday, 06-Dec-2024 05:27:40 JST Biason::Julio::new(); @mauve Dunno, I just find "let Some(x) = iterator.next" clearer, somehow.
-
Embed this notice
Mauve 👁💜 (mauve@mastodon.mauve.moe)'s status on Friday, 06-Dec-2024 05:27:41 JST Mauve 👁💜 @juliobiason What's the benefit in having the extra code?
-
Embed this notice