Advertisement
Guest User

Untitled

a guest
Aug 17th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;first example, this one works fine
  2.  
  3. (ns foo)
  4.  
  5. (defn print-extension
  6.     [path]     
  7.     (println
  8.         (org.apache.commons.io.FilenameUtils/getExtension path
  9.     ))
  10. )
  11.  
  12. ;;invocation below
  13. ;lein repl
  14. ; (load-file "/home/john/get-extension.clj")
  15. ;(/foo/print-extension "/home/john/get-extension.clj") ; gives "clj", it is OK.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement