Still by VisualMode
Home Blogmarks TILs Consulting
Home Blogmarks TILs Consulting
← Back to all TILs

Evaluate One Liners With lein-exec

clojure Written August 06, 2015

You can install the lein-exec plugin and then use it to evaluate one liner bits of code with the -e flag.

$ lein exec -e '(println "foo" (+ 20 30))'
foo 50

Other posts like this

  • Try A Clojure Project In The REPL clojure
  • Evaluating One-Off Commands ruby
  • Set Max Heap Size clojure
  • Link A Scalar To An Array zsh
  • Swap Occurrences Of Two Words vim