Re: put, applying get algorithm

2010-08-29 Thread Alexander Burger
Hi Jon, > > I never saw the ; shortcut being mentioned, in most cases (for me > > anyway) it will suffice instead of get. > > By the way, is the ';' functionally identical to the 'get'? Yes, except for whether (or which) arguments are evaluated. This is along the same line as 'get' <-> ':', 'pro

Re: put, applying get algorithm

2010-08-29 Thread Jon Kleiser
> I never saw the ; shortcut being mentioned, in most cases (for me > anyway) it will suffice instead of get. By the way, is the ';' functionally identical to the 'get'? If so, I think the docs should say so clearly. If not so, what's the difference? /Jon -- UNSUBSCRIBE: mailto:picol...@softwar

Re: put, applying get algorithm

2010-08-27 Thread Henrik Sarvell
I never saw the ; shortcut being mentioned, in most cases (for me anyway) it will suffice instead of get. On Fri, Aug 27, 2010 at 6:00 PM, Alexander Burger wrote: > Hi Jon, > >> I think this could be a nice little example: >> >> : (setq L '(A B C)) >> -> (A B C) >> : (setq B 'D) >> -> D >> : (pu

Re: put, applying get algorithm

2010-08-27 Thread Alexander Burger
Hi Jon, > I think this could be a nice little example: > > : (setq L '(A B C)) > -> (A B C) > : (setq B 'D) > -> D > : (put L 2 0 'p 5) > -> 5 > : (getl 'D) > -> ((5 . p)) Indeed! I included it. Many thanks! Cheers, - Alex -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Re: put, applying get algorithm

2010-08-27 Thread Jon Kleiser
On 8/26/10 1:20 PM, Alexander Burger wrote: .. I'm not sure about the docs, as such examples - as you can see above - quickly get rather complicated. Cheers, - Alex I think this could be a nice little example: : (setq L '(A B C)) -> (A B C) : (setq B 'D) -> D : (put L 2 0 'p 5) -> 5 : (getl '

Re: put, applying get algorithm

2010-08-26 Thread Alexander Burger
> On 8/26/10 1:20 PM, Alexander Burger wrote: > >As a conceived example, let's create in-memory objects instead: For the sake of completeness: The 'put' statement in the example (put 'Customer 'orders 1 'articles 2 'supplier 'street "New Street") becomes (with 'Customer (=: orders 1

Re: put, applying get algorithm

2010-08-26 Thread Jon Kleiser
Hi Alex, On 8/26/10 1:20 PM, Alexander Burger wrote: Hi Jon, That symbol is sym1 (if no other arguments are given), or a symbol found by applying the get algorithm to sym1|lst and the following arguments. Could somebody give me an example or two where this get algorithm is being applied? Mayb

Re: put, applying get algorithm

2010-08-26 Thread Alexander Burger
Hi Jon, > That symbol is sym1 (if no other arguments are given), or a symbol > found by applying the get algorithm to sym1|lst and the following > arguments. > > Could somebody give me an example or two where this get algorithm is > being applied? Maybe Alex could put it into the docs ...? This

put, applying get algorithm

2010-08-26 Thread Jon Kleiser
Hi, In the docs on the 'put' function I read this: That symbol is sym1 (if no other arguments are given), or a symbol found by applying the get algorithm to sym1|lst and the following arguments. Could somebody give me an example or two where this get algorithm is being applied? Maybe Alex co