[Issue 12564] std.range.backWalk, std.range.backWalkMaybe

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Mar 1 16:42:12 PST 2017


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

greenify <greeenify at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |greeenify at gmail.com
         Resolution|---                         |WONTFIX

--- Comment #1 from greenify <greeenify at gmail.com> ---
Due to the discussion at https://github.com/dlang/phobos/pull/5153, I am
closing this as WONTFIX as it can be done easily with:

```
auto last = r.fold!((a, b) => b);
```

For Maybe have a look at this PR:

https://github.com/dlang/phobos/pull/5154

It allows the following

range.orElse(seed).fold!`b`

--


More information about the Digitalmars-d-bugs mailing list