[Issue 11082] std.algorithm.join of a dynamic array of fixed-size arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 21 11:30:08 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11082
--- Comment #5 from bearophile_hugs at eml.cc 2013-09-21 11:30:06 PDT ---
(In reply to comment #4)
> You'd have to special case algorithms to handle them, because
> they violate the range API by their very nature.
Right, I am asking for a specialization of join. It's worth doing.
> And it's trivial enough to
> slice static arrays - even when they're inside a dynamic array -
This code is buggy:
import std.algorithm: join;
import std.stdio, std.algorithm;
void main() {
int[2][] data = [[1, 2]];
data.map!q{ a[] }.join.writeln;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list