Logo

Programming-Idioms

History of Idiom 26 > diff from v47 to v48

Edit summary for version 48 by Alexander:
New Clojure implementation by user [Alexander]

Version 47

2018-12-02, 14:16:43

Version 48

2019-02-16, 07:47:09

Idiom #26 Create a 2-dimensional array

Declare and initialize a matrix x having m rows and n columns, containing real numbers.

Illustration

Idiom #26 Create a 2-dimensional array

Declare and initialize a matrix x having m rows and n columns, containing real numbers.

Illustration
Code
(for [r (range m)]
  (for [c (range n)]
    (* r c)))