Multi-associative array

Etienne Cimon etcimon at gmail.com
Sat Feb 22 23:10:33 PST 2014


On 2014-02-23 01:27, H. S. Teoh wrote:
> You can just use a struct or tuple as the AA key to achieve the same
> thing.

I thought of that but it's not immediately obvious how I could achieve 
sorting or filtering by a certain field

e.g.
auto sorted = aa.sort!(Key.y => { a < b })
auto filtered = aa.filter! ....

foreach(x, y, z ; aa){
....
}

I don't see a very simple way of doing this right now. I'm sure someone 
thought of a library for this?


More information about the Digitalmars-d mailing list