Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

commented Jul 23, 2013

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
You can’t perform that action at this time.