Bug 14637 – Array operations should work on tuples

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-05-31T23:17:04Z
Last change time
2018-04-04T12:30:05Z
Keywords
preapproved, pull
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2015-05-31T23:17:04Z
For example: tuple ~ tuple should produce a tuple with the contents of both.
Comment #1 by andrei — 2015-05-31T23:18:36Z
We should also support tuple ~ value and value ~ tuple. Obviously the ~= operation cant' work :o).
Comment #2 by k.hara.pg — 2015-06-01T00:09:13Z
(In reply to Walter Bright from comment #0) > For example: > > tuple ~ tuple > > should produce a tuple with the contents of both. (In reply to Andrei Alexandrescu from comment #1) > We should also support tuple ~ value and value ~ tuple. Obviously the ~= > operation cant' work :o). Do you mean the concatenation of std.typecons.Tuple? If so, it's a Phobos issue.
Comment #3 by andrei — 2015-06-01T03:50:29Z
@Knji: Yes, Phobos, I've market it as such.
Comment #4 by andrei — 2015-06-01T03:51:00Z
sorry for the typo - Kenji.
Comment #5 by k.hara.pg — 2015-06-12T05:28:45Z
Related: issue 4591
Comment #6 by greensunny12 — 2018-03-30T06:28:55Z
Comment #7 by github-bugzilla — 2018-04-04T12:30:05Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/cddd0df51a50e2c370162daa7ed7fca0dad4b979 Fix Issue 4591, 14637 - Array operations should work on tuples https://github.com/dlang/phobos/commit/a62f6e3c81fe7996c6fc23223249660800ddd449 Merge pull request #6386 from wilzbach/fix-14637 Fix Issue 14637 - Array operations should work on tuples merged-on-behalf-of: Jack Stouffer <[email protected]>