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

前端 未结 8 1770
夕颜
夕颜 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:38

    For running a single file through command line use the following commands:

    clj -m (NameSpace name)
    

    ex: clj -m Sample

    Or if you want to run through repl:

    (load-file filelocation)
    

    ex:

     (load-file "Sample.clj")
    

提交回复
热议问题