Bug 21695 – Add three-way comparison function to std.functional

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-03-10T00:54:57Z
Last change time
2024-12-01T16:38:30Z
Assigned to
No Owner
Creator
Paul Backus
Moved to GitHub: phobos#9818 →

Comments

Comment #0 by snarwin+bugzilla — 2021-03-10T00:54:57Z
std.functional already contains the two-way comparison functions lessThan, greaterThan, and equalTo. Since D supports three-way comparison natively via opCmp, it should have a three-way comparison function too.
Comment #1 by robert.schadek — 2024-12-01T16:38:30Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9818 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB