Skip to content

Instantly share code, notes, and snippets.

@Raynes
Created January 12, 2010 04:22
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 Raynes/274901 to your computer and use it in GitHub Desktop.
Save Raynes/274901 to your computer and use it in GitHub Desktop.
user> (deftype penis [length width])
#'user/penis
user> (def raynezcock (penis 5 2))
#'user/raynezcock
user> (println raynezcock)
#:penis{:length 5, :width 2}
nil
user> :length raynezcock
#:penis{:length 5, :width 2}
user> (:length raynezcock)
5
user>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment