Julia-ism for two-dimensional map?

Your parameters are called xlist and ylist, but the body of the functions are referencing the global variables xset and yset.

thx, improbable. yes, I did change the loop. the original was for print illustration. this one has become more for basic benchmarking, which wasn’t really my question originally, but then became quite interesting.

[I fixed the sa in the post above.]

Ah indeed, sorry about that!

After fixing that, the version with for x in xset for y in yset] takes only about twice as long (141.284 μs) as the version with Iterators.product(xset,yset)]. This seems surprising, is there an obvious reason? Or just something to keep in mimd?