Reputation: 75
I have an array of elements that has been divided up into groups although I need to make reference to each grouping specifically using a letter for each. So far I have sorted and split the array but I am unsure of what the next step would be or if there is a more intuitive way to process this, my steps so far are below:
data(map(keyword :counter)querieddata)
sortedlist(sort > tosort)
part(into [] (partition-all (/ (count data) 10) sortedlist))
Ideally I'd like my output to be something like:
[(:a 40 40 36 33) (:b 33 30 27 25) (:c 25 19 18 5)]
Any help is greatly appreciated!
Upvotes: 1
Views: 351