Skip to content

Instantly share code, notes, and snippets.

@pjstadig
Created July 23, 2013 10:54
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 pjstadig/6061532 to your computer and use it in GitHub Desktop.
Save pjstadig/6061532 to your computer and use it in GitHub Desktop.
user=> (defn ^bytes foo ^bytes [] (byte-array [(byte 1) (byte 2)]))
#'user/foo
user=> (meta #'foo)
{:ns #<Namespace user>, :name foo, :file "NO_SOURCE_PATH", :column 1, :line 4, :arglists ([]), :tag #<core$bytes clojure.core$bytes@3a9e7c70>}
user=>
@JacekLach
Copy link

net.lshift.can.webapp.main-dynamic=> (defn foo ^bytes [] (byte-array [(byte 1) (byte 2)]))
#'net.lshift.can.webapp.main-dynamic/foo
net.lshift.can.webapp.main-dynamic=> (:arglists (meta #'foo))
([])
net.lshift.can.webapp.main-dynamic=> (meta (first (:arglists (meta #'foo))))
{:tag bytes}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment