Logo

Programming-Idioms

History of Idiom 7 > diff from v74 to v75

Edit summary for version 75 by tkoenig:
New Fortran implementation by user [tkoenig]

Version 74

2019-09-26, 18:36:35

Version 75

2019-09-26, 19:42:07

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

Extra Keywords
traverse traversal
Extra Keywords
traverse traversal
Code
do i=1, size(items)
  print *,i, items(i)
end do