Advertisement
Guest User

Untitled

a guest
Aug 10th, 2012
93
0
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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement