Re: stuck re quote

2016-11-22 Thread dean
Thank you very much Cristophe On 22 November 2016 at 13:03, Christophe Gragnic < christophegrag...@gmail.com> wrote: > On Tue, Nov 22, 2016 at 11:29 AM, dean wrote: > > > > Also I read that ' is a macro for quote but I couldn't produce a ' > > equivalent of ((quote

Re: stuck re quote

2016-11-22 Thread dean
I just came back to say this... http://picolisp.com/wiki/?articlequote looks very helpful but see your very comprehensive reply. I'll have a good look through both of them. Thank you very much Joe. On 22 November 2016 at 12:51, Joe Bogner wrote: > On Tue, Nov 22, 2016 at

Re: stuck re quote

2016-11-22 Thread Christophe Gragnic
On Tue, Nov 22, 2016 at 11:29 AM, dean wrote: > > Also I read that ' is a macro for quote but I couldn't produce a ' > equivalent of ((quote (X) (* X X)) 9) i.e. > > : ((quote (X) (* X X)) 9) > -> 81 > : (('(X) (* X X)) 9) > !? (('(X) (* X X)) 9) > NIL -- Undefined > ? >

Re: stuck re quote

2016-11-22 Thread Joe Bogner
On Tue, Nov 22, 2016 at 5:29 AM, dean wrote: > > Joe > My question came from that very documentation so I'm well aware of it. > > I've never used a lambda but your Javascipt example helps a lot and suggests > that 'quote' in > > > ((quote (X) (* X X)) 9) > > > transforms

Re: stuck re quote

2016-11-22 Thread dean
Joe My question came from that very documentation so I'm well aware of it. I've never used a lambda but your Javascipt example helps a lot and suggests that 'quote' in ((quote (X) (* X X)) 9) transforms the statement into something like ( (de anon (X) (* X X) ) anon 9 ) If that's

Re: stuck re quote

2016-11-21 Thread Joe Bogner
Hi dean, It's not clear what you're asking. Does this help explain it? http://software-lab.de/doc/tut.html --- from the page --- Anonymous functions without the lambda keyword There's no distinction between code and data in PicoLisp, quote will do what you want (see also this FAQ entry). :

stuck re quote

2016-11-21 Thread dean
I could do with some help understanding step by step what's happening here... Intuitively I can see that 9 squared is 81 but I can't really see, precisely, what this was doing ((quote (X) (* X X)) 9) -> 81 so I put it in a function in a file to trace it (de go () ((quote (X) (* X X)) 9) ) but