RosettaCodeData/Task/Singly-linked-list-Traversal/Common-Lisp/singly-linked-list-traversal-5.lisp
2015-02-20 00:35:01 -05:00

3 lines
90 B
Common Lisp

(loop for ref = list then (rest ref)
until (null ref)
do (print (first ref)))