| kencausey | reading clhs seems to imply that it is |
| brianZZZki | is there a good overview of lisp for the programmer who used to know it but hasn't used it in years and just needs to refreesh his understanding of the syntax? |
| bhyde | kencausey: yup |
| kencausey | so that's not the explanation... |
| pkhuong | brianZZZki: how about the CLHS? |
| slyrus_ | kencausey: that's bogus: (eq state 'semicolons) |
| kencausey | did I screw up my symbol syntax? |
| slyrus_ | you forgot a pair of parens ((eq ...) (cond ...)) |
| kencausey | ah, of course, thanks I guess my eyes are glazing over yep, so simply slyrus_: much thanks for the eyeballs |
| slyrus_ | yw |
| kencausey | good time to say enough, see you tomorrow |
| melchior | brianZZZki, lisp syntax is quite memorable |
| Cin | Zhivago: ping |
| brianZZZki | melchior: it was a decade ago and i was hungover in most of my classes (altho i did get an A in it) |
| rudi | minion: tell brianZZZki about pcl |
| minion | brianZZZki: please look at pcl: pcl-book: "Practical Common Lisp", an introduction to Common Lisp by Peter Seibel, available at http://www.gigamonkeys.com/book/ and in dead-tree form from Apress (as of 11 April 2005). |
| msingh | any trick to do this: (apply (car '( (lambda (x) (* x x)))) '(4)) |
| melchior | msingh, you just did |
| brianZZZki | hmm what am i missing here? (map (+ 1) '(1 2)) |
| msingh | melchior, no that wont work |
| pkhuong | brianZZZki: it's lisp, not haskell. |
| melchior | orly...? |
| Cin | brianZZZki: currying? |
| pkhuong | msingh: it does exactly what it's supposed to. Unfortunately for you, a function isn't a list. |
| brianZZZki | pkhuong: fair enough, but what is the missing argument? |
| rudi | brianZZZki: (mapcar (lambda (x) (+ 1 x)) '(1 2)) |
| msingh | pkhuong, right. but i would like to work with quoted data not lists |
| brianZZZki | rudi: is it possible to do that without lambda? |
| pkhuong | msingh: try `(,lambda (x) (* x x))) brianZZZki: sure, write a macro. |
| brianZZZki | or do i have more remembering than i figured, eh |
| pkhuong | (or a HOF) |
| rudi | brianZZZki: (mapcar # erm, (mapcar #'1+ '(1 2)) |