Skip to content
Prev 175043 / 398506 Next

programming creating different functions in a loop

But wrong questions requiring complicated answers are sometimes more fun :-).

One difference though is in my last example, your function will give a different answer for f(1:3, 1:10), but for the simpler cases, yours is probably the better.