Property lists

Started by Jeff, May 25, 2007, 12:14:35 PM

Previous topic - Next topic

Jeff

I wrote a quick macro so I could use property lists.  For those who came from common lisp and miss this, enjoy :)


(define-macro (plist)
  (map rest (explode (args) 3)))

(println (plist :foo "bar" :baz "bat")) ; => ((foo "bar") (baz "bat"))
Jeff

=====

Old programmers don\'t die. They just parse on...



http://artfulcode.net\">Artful code