The OpenD Programming Language

selfAndRecurseTemplatePipe

@optmath
template selfAndRecurseTemplatePipe (
alias Template
Args...
) {}

Examples

// import mir.ndslice.topology: map;
alias map(alias fun) = a => a; // some template
static assert (__traits(isSame, selfAndRecurseTemplatePipe!(map, 2, "a * 2"), map!(pipe!("a * 2", map!"a * 2"))));

Meta