clojure.string/split-lines

functionsince v0.0-927 clojure.string/split-linesEdit
(split-lines s)

Details:

Splits s on \n or \r\n.


See Also:


Source docstring:
Splits s on \n or \r\n. Trailing empty lines are not returned.
Source code @ clojurescript:src/main/cljs/clojure/string.cljs
(defn split-lines
  [s]
  (split s #"\n|\r\n"))