I'm not quite sure this expression is correct. This somewhat simpler one should be good enough:

    (ts ++ e) takeRight (fun.vparams.size + 1)