Logo

Programming-Idioms

History of Idiom 7 > diff from v21 to v22

Edit summary for version 22 by :

Version 21

2015-08-22, 09:06:31

Version 22

2015-08-22, 22:56:59

Idiom #7 Iterate over list indexes and values

Print each index i with its value x from an array-like collection items

Idiom #7 Iterate over list indexes and values

Print each index i with its value x from an array-like collection items

Code
items.forEach((i, value) {
  print('index=$i, value=$value');
});