Reimplementing the bulk of std.meta iteratively
Stefan Koch
uplink.coder at googlemail.com
Thu Oct 8 12:16:30 UTC 2020
On Thursday, 8 October 2020 at 12:05:22 UTC, Andrei Alexandrescu
wrote:
>
>
> The following works:
>
> alias DerivedToFront(Args...) = dereify!({
> auto ids = reifyArray!Args;
> ids.sort;
> return ids;
> }());
>
> https://gist.github.com/andralex/0d85df38be2d9ffbe89cf1fb51c44213
Only with the ID struct that defines the op-compare.
Which is significantly more complicated that the custom sort
predicate.
And also more inflexible.
More information about the Digitalmars-d
mailing list