(rotatef место1 ... местоn) ⇒ NIL
(let ((i 0) (x (list 'a 'b 'c 'd 'e))) (rotatef (nth (incf i) x) (nth (incf i) x) (nth (incf i) x)) x) (A C D B E) ;; Транспонирование квадратной матрицы A (loop with n = (array-dimension a 0) for i upfrom 0 below n do (loop for j upfrom (1+ i) below n do (rotatef (aref a i j) (aref a j i))))