We were given homework from lisp, where I need to use a "circular" list (I do not know why this is correct). By a "circular" list, I mean a list where the cdr last of them points to the very first of the same list.
(Value1 . PointerValue2) (Value2 . PointerValue3) (Value3 . PointerValue1)
We have been taught to create such lists with:
(defun cykl (l) (setf (cdr (last l)) l) )
The lisp software (Lispbox) that I use does not support such lists. I also tried clisp on Debian, but it crashed after creating such a list.
What lisp implementations do you know that this supports (freeware, os independent)?
list lisp circular-list common-lisp
Buksy Mar 20 '13 at 23:13 2013-03-20 23:13
source share