Re: a bunch of questions about syntax

2017-01-28 Thread pd
Thank you Alex for your patience, I see I have a severe confussion about how picolisp manages lists let's start by the begining... as far as I know (f a b 4) is just a list equivalent to (f . (a . (b . (4 . NIL and the fact being also a function call to function f applying parameters a b

Re: (NIL) vs Nothing

2017-01-28 Thread Alexander Burger
Hi Christophe, > > (de fltr (Buf Ln) > >(setq New_buf (mapcar '((Ele) (pack (tail (- (length Ln)) (chop Ele > > (filter '((Ele) (pre? Ln Ele)) Buf > > I'm not an expert, I just want to warn and maybe be confirmed. > As Alex said recently, PicoLisp programs should rarely use

Re: (NIL) vs Nothing

2017-01-28 Thread Christophe Gragnic
Hi all, On Fri, Jan 27, 2017 at 7:01 PM, dean wrote: > I've got this filtering function > > (de fltr (Buf Ln) >(setq New_buf (mapcar '((Ele) (pack (tail (- (length Ln)) (chop Ele > (filter '((Ele) (pre? Ln Ele)) Buf I'm not an expert, I just want

Re: (NIL) vs Nothing

2017-01-28 Thread dean
That' greatthank you for both examples. On 27 January 2017 at 19:03, Alexander Burger wrote: > Hi Dean, > > > (de fltr (Buf Ln) > >(setq New_buf (mapcar '((Ele) (pack (tail (- (length Ln)) (chop > Ele > > (filter '((Ele) (pre? Ln Ele)) Buf > > ... > >