I shipped some data structure code over on openD, but not all template wizards may be keeping track of the fork. https://github.com/opendlang/d/blob/main/source/odc/datastructures.d I think this is the type of thing that benefits from lots of iteration, needs some battle testing, needs editing passes by other poeple, etc. criticize