Forwarding arguments through a std.algorithm.map

crimaniak crimaniak at gmail.com
Sun Mar 11 01:19:27 UTC 2018


On Saturday, 10 March 2018 at 20:48:06 UTC, Nordlöw wrote:
> If I have a function
>
>     bool f(Rs...)(Rs rs)
>
> is it somehow possible to map and forward all its arguments 
> `rs` to another function
>
>     bool g(Rs...)(Rs rs);

docs:
  https://dlang.org/phobos/std_traits.html#.Parameters
usage example:
  
https://github.com/crimaniak/d-vision/blob/master/src/vision/eventbus.d#L173


More information about the Digitalmars-d-learn mailing list