Page 1 of 1

Are circular list possible?

Posted: Thu Oct 14, 2004 6:45 pm
by ecaftihs
I was just wondering if circular lists are possible in newLisp.

Ecaftihs

Posted: Thu Oct 14, 2004 7:05 pm
by Lutz
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'

Posted: Thu Oct 14, 2004 8:13 pm
by ecaftihs
How, I just cannot figure out how to do it and can't find documentation about it either.

Ecaftihs

Posted: Thu Oct 14, 2004 8:37 pm
by Lutz
hope this is what you are looking for?

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


Lutz

Posted: Fri Oct 15, 2004 1:36 pm
by eddier
Lutz,

Did you mean "no circular lists" instead of "now circular lists?"

Posted: Fri Oct 15, 2004 1:39 pm
by Lutz
Oops, yes of course: there are _no_ circular lists. I edited the post too.

Lutz