Created
August 13, 2010 21:35
-
-
Save jurrchen/523579 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
(defn gen-generic [generic types & args] | |
(if args | |
(clojure.lang.GenGeneric/Create generic types (vec args)) | |
(clojure.lang.GenGeneric/Create generic types []))) | |
(defn gen-generic-method [callsite method types & args] | |
(let [argv (if args | |
(vec args) | |
[])] | |
(if (= (.GetType callsite) System.RuntimeType) | |
(clojure.lang.GenGenericMethod/CreateStatic callsite method types argv) | |
(clojure.lang.GenGenericMethod/Create callsite method types argv)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment