(ring-elements): New function.
This commit is contained in:
parent
b9f5db901f
commit
6a475c9955
1 changed files with 4 additions and 0 deletions
|
@ -154,6 +154,10 @@ will be performed."
|
|||
(let* ((hd (car ring)) (ln (car (cdr ring))) (vec (cdr (cdr ring))))
|
||||
(aref vec (ring-index index hd ln (length vec))))))
|
||||
|
||||
(defun ring-elements (ring)
|
||||
"Return a list of the lements of RING."
|
||||
(mapcar #'identity (cddr ring)))
|
||||
|
||||
;;; provide ourself:
|
||||
|
||||
(provide 'ring)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue