Logo

Programming-Idioms

History of Idiom 7 > diff from v65 to v66

Edit summary for version 66 by foobar:
New Lisp implementation by user [foobar]

Version 65

2019-09-26, 14:56:49

Version 66

2019-09-26, 15:06:45

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
(loop for i from 0 and x across items
      do (format t "~a = ~a~%" i x))