-
-
Save tomjack/0e6815afb89d1b5b075e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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