std.range.chain bug?

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Tue Nov 26 18:45:19 PST 2013


On Tuesday, 26 November 2013 at 06:55:40 UTC, monarch_dodra wrote:
> Right, but he said "Foo":
>
> import std.range;
> alias Foo = string;
> void main() {
> 	immutable(Foo)[] a;
> 	immutable(Foo)[] b;
> 	auto c = chain(a, b).length;
> }

Yes, my mistake, array of string should be fine. I was trying to 
think of a situation it shouldn't work, identified it wrong.


More information about the Digitalmars-d-learn mailing list