difference between a cons pain and plain list

2010-08-17 Thread Edwin Eyan Moragas
Hi all, yes, a lisp newcomer here. looking at the example in the app dev doc: : (h1 '(id . bar) Title) two questions 1) if the cons pair was written as code(id bar)/code instead of as with the example, would h1 treat it different? how? 2) what's the fundamental difference between a cons pair

Re: difference between a cons pain and plain list

2010-08-17 Thread Edwin Eyan Moragas
Hi Alex, On Tue, Aug 17, 2010 at 8:34 PM, Alexander Burger a...@software-lab.de 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

Re: difference between a cons pain and plain list

2010-08-17 Thread Alexander Burger
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 | +-+-+

Re: script for generating tags for picolisp

2010-08-17 Thread Doug Snead
Here's one shell script I used to use for that (I called it lisptags) ... hopefully it still works :-) #!/bin/sh # make a tags file for pico lisp source files. # use: # lisptags foo.l bar.l baz.l ... bof.l # generate the file 'tags' # [based on lisptags csh script by John Foderaro,