Skip to content

Instantly share code, notes, and snippets.

@tomjack
Created January 9, 2011 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 tomjack/0e6815afb89d1b5b075e to your computer and use it in GitHub Desktop.
Save tomjack/0e6815afb89d1b5b075e to your computer and use it in GitHub Desktop.
user> (repl/show kf)
=== public abstract interface kf ===
[ 0] a : void (String)
[ 1] a : void (int)
[ 2] b : void (String)
nil
user> (reify kf
(^void a [_ ^String s] (println "a (string):" s))
(^void a [_ ^int i] (println "a (int):" i))
(^void b [_ ^String s] (println "b:" s)))
#<user$eval2691$reify__2692 user$eval2691$reify__2692@2013b9fb>
user> (.a *1 "foo")
a (string): foo
nil
user> (.a *2 35)
a (int): 35
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment