Split strings is based on the escape characters \n or \r\n.
Following is the syntax.
Parameters − ‘str’ is the string which needs to be split.
Return Value − The split string.
Following is an example of split-lines in Clojure.
(ns clojure.examples.hello (:gen-class)) (defn hello-world  (println (clojure.string/split-lines "Hello\nWorld"))) (hello-world)
The above program produces the following output.
Note that in the above output, both the strings “Hello” and “World” are separate strings.