Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@MichaelDrogalis
Last active December 23, 2015 12:59
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 MichaelDrogalis/6638777 to your computer and use it in GitHub Desktop.
Save MichaelDrogalis/6638777 to your computer and use it in GitHub Desktop.
user=> (defn odd?? [n] (odd? n))
#'user/odd??
user=> (defn even?? [n] (not (odd?? n)))
#'user/even??
user=> (odd?? 1)
true
user=> (odd?? 2)
false
user=> (night-vision.goggles/introspect-ns! 'user)
nil
user=> (odd?? 1)
"------------------------------------------------"
"Invoking #'user/odd??"
"Actual arguments are: (1)"
"------------------------------------------------"
"------------------------------------------------"
"Returning from #'user/odd??"
"Return value is: true"
"------------------------------------------------"
true
user=> (odd?? 2)
"------------------------------------------------"
"Invoking #'user/odd??"
"Actual arguments are: (2)"
"------------------------------------------------"
"------------------------------------------------"
"Returning from #'user/odd??"
"Return value is: false"
"------------------------------------------------"
false
user=> (even?? 2)
"------------------------------------------------"
"Invoking #'user/even??"
"Actual arguments are: (2)"
"------------------------------------------------"
"------------------------------------------------"
"Invoking #'user/odd??"
"Actual arguments are: (2)"
"------------------------------------------------"
"------------------------------------------------"
"Returning from #'user/odd??"
"Return value is: false"
"------------------------------------------------"
"------------------------------------------------"
"Returning from #'user/even??"
"Return value is: true"
"------------------------------------------------"
true
{:user
{:dependencies [[night-vision "0.1.0-SNAPSHOT"]]
:injections [(require 'night-vision.goggles)
(require 'clojure.pprint)]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment