std.multidimarray
Dennis Ritchie via Digitalmars-d
digitalmars-d at puremagic.com
Sun May 24 10:39:31 PDT 2015
Hello everyone!
I want to know whether there are any plans for the inclusion of
such a module in Phobos?
Documentation:
http://denis-sh.bitbucket.org/unstandard/unstd.multidimarray.html
Source:
https://bitbucket.org/denis-sh/unstandard/src/ab5e199797e809ba4668affdc4fc8e84f40d2440/unstd/multidimarray.d?at=master
I think that the foreach loop with Multi-iterators bring many new
and exciting designs in D:
foreach(z, y, x, ref el; matrices) // using opApply
el = cast(int) (z * 100 + y * 10 + x);
Of course, embedded in the language is not necessary, but why not
create a separate module std.multidimarray.
More information about the Digitalmars-d
mailing list