Hi Edwin,
> > +-+-+ +-+-+
> > | a | ---+>| b | NIL |
> > +-+-+ +-+-+
>
> thank you for this. clearer now. this is how it is implemented in
> picolisp underneath, right? (from pico.h)
Yes.
> so if i had a different base data structure, it wo
On Tue, Aug 17, 2010 at 09:06:56PM +0800, Edwin Eyan Moragas wrote:
> > A three-dimensional coordinate, btw, could be put into a two-cell
> > structure (x y . z), needing only two cells instead of three.
>
> like so?
>
> +-+-+ +-+-+
> | x | ---+>| y | z |
> +-+-
Hi Alex,
On Tue, Aug 17, 2010 at 8:34 PM, Alexander Burger wro=
te:
>>
>> (a . b ) =3D=3D> [a, b]
>> (a b) =3D=3D> [a, b, NIL]
>
> Well, it depends how your '[' and '[' notation is interpreted. I would
> draw it as cell boxes. (a . b) is a single cell (two pointers), with 'a'
> in the CAR and 'b'
Hi Edwin,
> yes, a lisp newcomer here.
that's a good thing :-)
> looking at the example in the app dev doc:
>
> : ( '(id . bar) "Title")
>
> two questions
> 1) if the cons pair was written as (id bar) instead of as
> with the example, would treat it different? how?
Yes. The function '' call