You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
let a = [1,2, 3]$.map(|x| x).toList()
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: