newLISP Fan Club

Forum => Anything else we might add? => Topic started by: ecaftihs on October 14, 2004, 11:45:40 AM

Title: Are circular list possible?
Post by: ecaftihs on October 14, 2004, 11:45:40 AM
I was just wondering if circular lists are possible in newLisp.



Ecaftihs
Title:
Post by: Lutz on October 14, 2004, 12:05:46 PM
There are no circular lists in newLISP. But there is a 'rotate' function, which might help you, and there is the possibility of negative indexing, counting from the right.



Lutz



ps: corrected 'now' to 'no'
Title:
Post by: ecaftihs on October 14, 2004, 01:13:46 PM
How, I just cannot figure out how to do it and can't find documentation about it either.



Ecaftihs
Title:
Post by: Lutz on October 14, 2004, 01:37:48 PM
hope this is what you are looking for?



http://newlisp.org/newlisp_manual.html#rotate





Lutz
Title:
Post by: eddier on October 15, 2004, 06:36:20 AM
Lutz,



Did you mean "no circular lists" instead of "now circular lists?"
Title:
Post by: Lutz on October 15, 2004, 06:39:42 AM
Oops, yes of course: there are _no_ circular lists. I edited the post too.



Lutz