Skip to content

Instantly share code, notes, and snippets.

@ninjudd
Created May 10, 2012 19:01
Show Gist options
  • Save ninjudd/2655145 to your computer and use it in GitHub Desktop.
Save ninjudd/2655145 to your computer and use it in GitHub Desktop.
(macro-do [name]
(let [{:keys [varname meta]} (graph-impl name)]
`(defn ~name ~(:doc meta)
(~'[head-id tail-id]
(~name :over-layer ~@'[head-id tail-id]))
(~'[layer-name head-id tail-id]
(~varname (layer ~'layer-name) ~@'[head-id tail-id]))))
merge-node! unmerge-node!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment