Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created May 26, 2017 15:18
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 deque-blog/63b4793554d064fc9976ff4a3b0a9059 to your computer and use it in GitHub Desktop.
Save deque-blog/63b4793554d064fc9976ff4a3b0a9059 to your computer and use it in GitHub Desktop.
(defn-log head-and-tail
[[x & xs]]
{:head x
:tail xs})
; Example call
(head-and-tail [1 2 3])
; Generates the log trace
"[TRACE] Call to \"head-and-tail\" with arguments: {x 1, xs (2 3)}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment