How can I run a .clj Clojure file I created?

前端 未结 8 1780
夕颜
夕颜 2021-01-30 08:19

I\'ve installed Geany on my Linux Mint machine and I wrote some simple code. Just a small hello world to get started with the language.

Now I\'d like to run it and see w

8条回答
  •  不知归路
    2021-01-30 08:43

    Once you've installed lein and the lein-exec plugin, running the .clj file you've created is as simple as

    lein exec hello.clj
    

    In case you're passing command line arguments like

    lein exec hello.clj arg1 arg2 arg3
    

    you can access them in the 'foo' function in your hello.clj like

    (foo *command-line-args*) 
    

提交回复
热议问题