Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I break lines in Clojure?

In my Clojure source code there are some strings that are too long, like 400 characters. I would like to breakline these string. In Java I would do something like:

String myStrig = "I am a long" 
                  + "String";

How can I do it?

like image 402
fiso Avatar asked Dec 01 '25 20:12

fiso


1 Answers

Simply enough:

(str "I am a long "
     "string")
like image 73
Charles Duffy Avatar answered Dec 03 '25 16:12

Charles Duffy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!