Want a map from a list of interleaved keys and val...
# development
a
Want a map from a list of interleaved keys and values?
list.into_iter().tuple_windows<(_, _)>().collect()
- done
👍 1
e
I think the windows overlap though so you will get some extra elements in your map. the
tuples
method seems more apt.
a
Right you are! Thanks for the catch!
e
very cool though!
w
ooo