Closed ghost closed 1 year ago
So to group by the third element you could use group(x -> x[3], A)
.
Depending on what you want, you could group by a combination of the 3rd/4th keys with group(x -> (x[3], x[4]), A)
or you could do it nested like group.(x -> x[4], group(x -> x[3], A))
. (Oh how I do like that Dictionary
can broadcast!)
Lastly, Discourse, Slack or Zulip might be better places to go for Q&A - you're likely to get faster responses, and GitHub is more for development issues.
I have a set of 4-tuples and would like to group them based on their third position and an extra condition on forth position. For instance: