-
-
Save kindlychung/dc979b308a4bbb800415 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
(use 'clojure.pprint) | |
(defmacro aupdate-in [a i f & args] | |
`(aget ~a ~i (~f (aget ~a ~i) ~@args))) | |
(pprint | |
(macroexpand-1 | |
(aupdate-in (int-array [1 2 3]) 1 * 5))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CompilerException java.lang.IllegalArgumentException: Argument is not an array, compiling:(/Users/kaiyin/personal_config_bin_files/workspace/cina/src/cina/fn_browser.clj:41:42)