Hi Dean,

> (setq I '(() (a) (a b)))
> (setq V '(empty a_vlu ab_vlu))
> (de vlu4key (K 'I 'V)

This is fatal! A function needs a list of *symbols*, not expressions like 'I ;)

> > (de vlu4key (Vlu 'I 'V)
> >     (setq Ix (index Vlu I))
> >     (get V Ix) )

Using 'index' to find an element and then traverse the list again with 'get' is
not efficient.

Instead, I recommend 'pick' where you pass the two lists.

- Alex
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to