[Issue 13591] [Enh] add std.algorithm.reinterpret

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 10 19:57:40 UTC 2018


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

Seb <greensunny12 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greensunny12 at gmail.com

--- Comment #2 from Seb <greensunny12 at gmail.com> ---
> Currently, it is clumsy to change the type of an Element in a pipeline

Well, the status quo for whole elements

a.b.pipe!(a => cast(T)).c.d

And for elements:

a.b.map!(a => cast(T)).c.d

Or is this just a request to generalize std.exception.assumeUnique into
assume!XYZ, but being @safe for all its generalizations?

--


More information about the Digitalmars-d-bugs mailing list