I've just completed my first D package: http://code.dlang.org/packages/ddiff
It is a straight port, so it isn't at all functional-style.I'd be happy and interested if anyone could show me how to replace some/all of the for[each] loops (without reducing performance), or for any other code improvements that would make it more idiomatic D.