newLISP Fan Club

Forum => Anything else we might add? => Topic started by: Jeff on May 25, 2007, 12:14:35 PM

Title: Property lists
Post by: Jeff on May 25, 2007, 12:14:35 PM
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"))