I know *how* to write this myself, as I would in C, but I'd like to know if 
one of the built-in datatypes (or a package) in Julia would handle this for 
me without me having to write much code...
I will be building up an array or dict or whatever with a key, where need 
to keep track of number of occurrences and a flag that indicates whether it 
is
present in group 1, group 2, or both...
I then need to sort it first by the group (group 1 first, then present in 
both, then group 2), and within the groups by frequency...

I am curious both about which approach in Julia would be the easiest and 
simplest to write (for when performance is not important, where I build
these tables just once), and which approach would perform the best (on 0.4, 
I'm not interested in 0.3.x). [Maybe it is the same approach... that would 
be nice!]

Thanks for any advice on this!

Reply via email to