Skip to content

Instantly share code, notes, and snippets.

@pepijndevos
Created April 5, 2011 16:43
Show Gist options
  • Select an option

  • Save pepijndevos/903973 to your computer and use it in GitHub Desktop.

Select an option

Save pepijndevos/903973 to your computer and use it in GitHub Desktop.
(ns test)
(defprotocol foo
(bar [this s]))
(defn probably-string []
(when true "Clojure"))
(let [t (reify foo (bar [this ^String s] (.substring s 2 5)))
s (probably-string)]
(println (bar t s)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment