Hello,

I’d like to have an array which elements `A[i, j]`

are computed from a given function `f(i, j)`

(say `f(i, j) = i + j`

) only when that element is used, i.e. I would **not** like to build the whole matrix beforehand.

I was thinking of maybe writing a new type which subtypes AbstractArray, but it’s a bit of work. I’ve tried looking for implementations of something like that, but wasn’t able to find anything.

Does anyone has any suggestions?

Thanks