Skip to content

Instantly share code, notes, and snippets.

@metamorph
Created March 4, 2016 13:33
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 metamorph/e1eb70ae65f5451aeefc to your computer and use it in GitHub Desktop.
Save metamorph/e1eb70ae65f5451aeefc to your computer and use it in GitHub Desktop.
(defn func-info-handler [input]
(if (= "FuncInfo" (:type input))
(if-let [[_ c] (re-matches (re-pattern "([^:]+):.*") (:data input))]
(assoc input :func-class c)
input)
input))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment