unordered output of an associated array of associated arrays

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Jan 25 03:30:50 UTC 2022


On Tue, Jan 25, 2022 at 02:46:43AM +0000, forkit via Digitalmars-d-learn wrote:
> On Tuesday, 25 January 2022 at 02:12:50 UTC, H. S. Teoh wrote:
> > 
> > That's the *easy* way out??  Try this instead:
> > 
> > 	aaTable.keys.sort.each!((k) {
> > 		aaTable[k].keys.sort.each!((kk) {
> > 			writefln("%s:%s:%s", k, kk, aaTable[k][kk]);
> > 		});
> > 	});
[...]
> surely, this is voodoo?  ;-)

No, this is D-doo.  We're here to do-D-doo. :-D


T

-- 
If you're not part of the solution, you're part of the precipitate.


More information about the Digitalmars-d-learn mailing list