This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun process(cells) | |
(do ((moves 0 (+ 1 moves)) | |
(position 0) | |
(cell-value (elt cells 0) (ignore-errors (elt cells position)))) | |
((null cell-value) (print moves)) | |
(psetf | |
position (+ cell-value position) | |
(elt cells position) (1+ cell-value)))) | |
(defun start() |