dmm: (Default)
Dataflow matrix machines (by Anhinga anhinga) ([personal profile] dmm) wrote2021-05-08 04:06 pm

A beautiful article about "CartesianIndices" in Julia

julialang.org/blog/2016/02/iteration/

(Caveats and remarks: This article is written for mutable arrays. We do often require immutable arrays these days.

Some of the links to Julia documentation are out of date, see docs.julialang.org/en/v1/manual/arrays/ instead.

X... construction typically "splats" elements of tuple or array X, see the second half of docs.julialang.org/en/v1/manual/functions/#Varargs-Functions section for explanation and examples, starting from the words 'On the flip side, it is often handy to "splat" the values contained in an iterable collection into a function call as individual arguments'; this construction works everywhere, not just in function calls.)