Skip to content

Instantly share code, notes, and snippets.

@cemerick
Created June 7, 2010 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cemerick/a455d0afd7478092b141 to your computer and use it in GitHub Desktop.
Save cemerick/a455d0afd7478092b141 to your computer and use it in GitHub Desktop.
(defrecord Foo [a b]
:factories {:fromMap (from-map-factory-factory Foo)
:mySpecialFactory my-special-factory-fn})
;; => (Foo/fromMap {...})
;; => (Foo/mySpecialFactory .. .. .. ..)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment