Skip to content

Instantly share code, notes, and snippets.

@halcat0x15a
Created May 4, 2011 13:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halcat0x15a/955212 to your computer and use it in GitHub Desktop.
Save halcat0x15a/955212 to your computer and use it in GitHub Desktop.
clojureでscala.Function*を作る。
(defmacro sfn [params expr]
`(proxy [~(symbol (str "scala.Function" (count params)))] []
(apply ~params
~expr)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment