Bug 17200 – std.algorithm: add last* to minPos, maxPos, find, ...

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-02-19T21:59:13Z
Last change time
2024-12-01T16:29:32Z
Assigned to
No Owner
Creator
Seb
Moved to GitHub: phobos#9708 →

Comments

Comment #0 by greeenify — 2017-02-19T21:59:13Z
It would be nice to have a convenient wrapper to yield the last result of the following: minElement maxElement minIndex maxIndex minPos maxPos find While one can simply use `.retro`, this doesn't work for InputRanges. It might be possible to build a `.last` (similar to walkBack) that abstracts this difference away and keeps calling the method, e.g.
Comment #1 by robert.schadek — 2024-12-01T16:29:32Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9708 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB