Created
May 26, 2017 15:18
-
-
Save deque-blog/63b4793554d064fc9976ff4a3b0a9059 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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