[Issue 5489] std.typecons tuples dynamically iterable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 21 14:27:55 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=5489

Seb <greensunny12 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |greensunny12 at gmail.com
           Assignee|nobody at puremagic.com        |greensunny12 at gmail.com

--- Comment #2 from Seb <greensunny12 at gmail.com> ---
This already works if you combine .expand with std.range.only:

```
import std.algorithm, std.range, std.stdio, std.typecons;
auto t = tuple(1, 2);
t.expand.only.sum.writeln;
```

PR to add this as an example: https://github.com/dlang/phobos/pull/5953

--


More information about the Digitalmars-d-bugs mailing list