On Wednesday, 11 January 2017 at 19:39:17 UTC, Ali Çehreli wrote:
return choose(lengths.length == 1, one!T(alloc, lengths[0]), two!T(alloc, lengths));

Well, choose is the right tool when the choice can only be made at runtime. That would be uncommon for dimensionality.

Anyhow mentioning ndslice for multi-dim seems like the sanest tip here.
https://github.com/libmir/mir

Reply via email to