Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tomjack
Created August 31, 2010 11:00
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 tomjack/d236d21d9c84d7a2a37c to your computer and use it in GitHub Desktop.
Save tomjack/d236d21d9c84d7a2a37c to your computer and use it in GitHub Desktop.
user> (defrecord World [bunny wolf]
clojure.lang.IFn
(invoke [t k] (k t)))
user.World
user> ((World. 1 2) :bunny)
1
user>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment