Function: iswitchb-rotate-list
iswitchb-rotate-list is a byte-compiled function defined in
iswitchb.el.gz.
Signature
(iswitchb-rotate-list LIS)
Documentation
Destructively remove the last element from LIS.
Return the modified list with the last element prepended to it.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/iswitchb.el.gz
;; from Wayne Mesard <wmesard@esd.sgi.com>
(defun iswitchb-rotate-list (lis)
"Destructively remove the last element from LIS.
Return the modified list with the last element prepended to it."
(if (<= (length lis) 1)
lis
(let ((las lis)
(prev lis))
(while (consp (cdr las))
(setq prev las
las (cdr las)))
(setcdr prev nil)
(cons (car las) lis))))