(save-excursion
(loop initially (goto-char (point-min))
until (eobp)
collect (thing-at-point 'line)
do (forward-line 1)))
(loop with ret
for i from 1 to 3
do (push i ret)
finally return ret)
(loop with ret
for i from 1 to 3
do (push i ret)
finally (return ret))
(loop for x in '(1 3 4 5 8)
if (evenp x) collect x)
(loop for x in '(1 3 4 5 8)
unless (oddp x) collect x)
(loop for sym in '("find-file" "hogehoge" "view-file")
if (intern-soft sym) collect it)
(loop for x in '(3 4 8 5 9 2)
if (evenp x)
collect x into evens
else
collect x into odds
finally return (list evens odds))
(loop for x in '(3 4 8 5 9 2)
unless (oddp x)
collect x into evens
else
collect x into odds
finally return (list evens odds))
(loop for x in '(1 3 5 6 7)
if (evenp x) return x)
(loop named found
for i from 1 to 10 do
(loop for j from 1 to 10
if (= (* i j) 21)
do (return-from found (cons i j))))