Julia Documentation: 
cartesianmap(f, dims)
Given a dims tuple of integers (m, n, ...), call f on all combinations of 
integers in the ranges 1:m, 1:n,
etc.
Example:
julia> cartesianmap(println, (2,2))
11
21
12
22


julia>x= cartesianmap(2,2)
ERROR: no method cartesianmap(Int64, Int64)

How to take variable (array) x=
11
21
12
22

?

Paul


Reply via email to