Logo

Programming-Idioms

History of Idiom 26 > diff from v103 to v104

Edit summary for version 104 by megabyte6:
New Dart implementation by user [megabyte6]

Version 103

2022-09-06, 07:26:29

Version 104

2023-01-28, 06:13:17

Idiom #26 Create a 2-dimensional array

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

Idiom #26 Create a 2-dimensional array

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

Variables
x,m,n
Variables
x,m,n
Extra Keywords
2d
Extra Keywords
2d
Code
var x = new List.generate(m, (_) => new List.filled(n, 0));