On Saturday, 20 August 2016 at 22:11:40 UTC, Engine Machine wrote:
Is there a way to rebind the arguments of a template?

template foo(X)
{
   // X is like A!(a,b,c)
   Y = Rebind!(X,d,e,f);
   // Y is like A!(d,e,f);
}

foo(A!(a,b,c));

?

I'd also be happy if I could just remove the last element from A.

template EraseLast(X)
{
    // returns A!(a,b) when X = A!(a,b,c)
}

Reply via email to