SHARE
TWEET

Untitled

a guest Aug 10th, 2012 30 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn popo [] (println "popo"))
  2. (defn wawa [] (println "wawa"))
  3.  
  4. (defn test [fn]
  5.    (if (= fn popo) :a
  6.                    (if (= fn wawa) :b)))
  7.  
  8. (defn test2 [fn]
  9.         (case fn
  10.           popo :a
  11.           wawa :b))
  12.  
  13. (test popo)
  14. (test2 popo)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top