Hi Alex
I changed those 'Key 'Keys and 'Fn_to_call shortly after posting.
There'll also be a 3rd list call 'Args.
Because there are numerous associated bits and pieces they seem a good
candidate for an object.
Thank you for "pick" and the above corrections.
Best Regards
Dean


On 13 December 2016 at 19:58, Alexander Burger <a...@software-lab.de> wrote:

> 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.
>
> Cheers,
> - Alex
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>

Reply via email to