Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Lists and recursion in JavaScript


Message #1 by "Rohan Nicholls" <rohan.nicholls@i...> on Fri, 21 Sep 2001 08:46:07
I am new to this list, and like the breadth covered in these lists.  I 
have some questions that deal with a thorn in my side for a while now, but 
I finally thought I would do something about it....

Does JavaScript have facility for Lists (ala Lisp)?  If not is there
anything to move pointer positions directly, or a function like rest
(cdr, again more lisp) which gives you the rest of the array so it can
be passed easily in recursive functions (which I use a lot).

The reason I ask is that I am using a lot of multi-dimensional arrays,
both of simple values and objects and it would be nice to have this
feature, as doing double recursion is hell with indexes.:)  (I know I am
spoiled by Lisp, but once you have a cool toy it is hard to give up.)

Any help would be appreciated.

tia,

Rohan

By the way, if not would anyone be interested in library functions that I 
will probably build out of frustration to extend the Array interface to 
allow for these features.  If I do have to do this any suggestions?


  Return to Index