How to map elements of a tuple?
Andrey
saasecondbox at yandex.ru
Wed Aug 22 10:36:32 UTC 2018
Hello,
Is there a template/function/mixin... in the library that I can
use to map elements of a tuple?
> object.foo(Mapper!myMapFunction(1, bool, "Qwerty",
> EnumedColor.Red));
where "Mapper" is this mapper and "myMapFunction" is a template
function that I want to apply to each member in tuple.
I know that there is std.algorithm.map but as I understand it is
suitable only for arrays (types are the same).
More information about the Digitalmars-d-learn
mailing list