While working on advent of code 2021 I've noticed there is a quite a bit of boilerplate with both .iter() and .into(<Class>.collect). Essentially converting a container too and from an iterator. I'd like to consider add some sort of sugar make this explicit still but shorter.
Problem
While working on advent of code 2021 I've noticed there is a quite a bit of boilerplate with both
.iter()
and.into(<Class>.collect)
. Essentially converting a container too and from an iterator. I'd like to consider add some sort of sugar make this explicit still but shorter.