https://pantsbuild.org/ logo
#development
Title
# development
a

average-vr-56795

10/10/2019, 1:55 PM
Want a map from a list of interleaved keys and values?
list.into_iter().tuple_windows<(_, _)>().collect()
- done
👍 1
e

early-needle-54791

10/10/2019, 4:37 PM
I think the windows overlap though so you will get some extra elements in your map. the
tuples
method seems more apt.
a

average-vr-56795

10/10/2019, 4:38 PM
Right you are! Thanks for the catch!
e

early-needle-54791

10/10/2019, 4:39 PM
very cool though!
w

witty-crayon-22786

10/11/2019, 3:27 PM
ooo