std.meta.Replace using index

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 28 01:22:21 PDT 2017


Hi

I want to replace each occurrence of a particular type in an 
AliasSeq with a type from another AliasSeq (the both have the 
same length) with the corresponding index

i.e. (int long long float) (byte char double dchar)  replacing 
long should yield (int char double float) std.meta.Replace would 
see to do the trick except the lambda depends in the index and 
I'm not sure how to pass that.


More information about the Digitalmars-d-learn mailing list