[NBLUG/talk] CLISP mini-mini-mini-mini-HOWTO

Andru Luvisi luvisi at andru.sonoma.edu
Mon May 19 14:57:01 PDT 2003


On Mon, 19 May 2003, Steve Zimmerman wrote:
[snip]
> Anyone else know some fun newbie stuff to do in CLISP?
[snip]

Self modifying code, closures, and macros are always fun...

Resources for learning Common Lisp:
  http://www.lisp.org/table/learn.htm

The Common Lisp standard:
  http://www-2.cs.cmu.edu/Groups/AI/html/cltl/cltl2.html

Some online books on the subject:
  http://psg.com/~dlamkins/sl/cover.html
  http://www.paulgraham.com/onlisp.html

For any of you scheme folks out there, here's a fun brain teaser I ran
across a while ago.  What does it print out?  You can always try running
it if you give up...

  (define call/cc call-with-current-continuation)
  (let* ((yin ((lambda (foo) (newline) foo)
               (call/cc (lambda (bar) bar))))
         (yang ((lambda (foo) (write-char #\*) foo)
                (call/cc (lambda (bar) bar)))))
    (yin yang))





More information about the talk mailing list