Hacker News new | ask | show | jobs
by co_dh 1174 days ago
https://code.kx.com/q/ref/
1 comments

Group is actually like inverse a mapping. Given an array A which map index to value, group A map value to index. A common idiom is: desc count each group A , which list most frequent element first