You're viewing version 1.2.0 of split-lines. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16



  • (split-lines s)
Splits s on \n or \r\n.

1 Example top

  • user=> (clojure.string/split-lines "test \n string")
    ["test " " string"]
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/string.clj:178 top

(defn split-lines
  "Splits s on \\n or \\r\\n."
  {:added "1.2"}
  [^CharSequence s]
  (split s #"\r?\n"))
Vars in clojure.string/split-lines: defn
Used in 0 other vars

Comments top

No comments for split-lines. Log in to add a comment.