-
|
I got |
Beta Was this translation helpful? Give feedback.
Answered by
hhirtz
Apr 20, 2023
Replies: 1 comment 2 replies
-
|
Hi, Hope that helps! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would look like this:
partition .iter() .zip(weights) .fold(vec![Vec::new(); 3], |acc, (&part, &weight)| { acc[part].push(weight); acc })