Are circular list possible?

For the Compleat Fan
Locked
ecaftihs
Posts: 2
Joined: Thu Oct 14, 2004 6:43 pm

Are circular list possible?

Post by ecaftihs »

I was just wondering if circular lists are possible in newLisp.

Ecaftihs

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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'
Last edited by Lutz on Fri Oct 15, 2004 1:38 pm, edited 1 time in total.

ecaftihs
Posts: 2
Joined: Thu Oct 14, 2004 6:43 pm

Post by ecaftihs »

How, I just cannot figure out how to do it and can't find documentation about it either.

Ecaftihs

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

hope this is what you are looking for?

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


Lutz

eddier
Posts: 289
Joined: Mon Oct 07, 2002 2:48 pm
Location: Blue Mountain College, MS US

Post by eddier »

Lutz,

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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Oops, yes of course: there are _no_ circular lists. I edited the post too.

Lutz

Locked