Re: A system to access very large lists by index

2015-02-22 Thread Enrique Sánchez
Alternatively, you might consider putting it inline into the Lisp source (load @lib/gcc.l) (gcc fast NIL 'fastNth) any fastNth(any ex) { any x = cdr(ex); ... } /**/ thank you, I will try that. -- UNSUBSCRIBE:

Re: A system to access very large lists by index

2015-02-22 Thread Alexander Burger
Hi Enrique, (de leap (L) (make (for (P L P (nth P 9)) (link P))) ) (de helper (L) (leap(leap(leap(leap(leap(leap L)) ) We initialize the original list, and build the helper list: (setq A (need 200 0) # two million elements list B (helper A)