@nloops with type parameter N

You need to use a @generated function foo and then interpolate $N into the returned expression, like the example in the manual.

3 Likes