Skip to main content
Home
Docs
Courses
Workshops
Jobs
Podcast
Sign in
Docs
Reference
Clojure
clojure.string
split-lines
split-lines
function
v1.2
clojure.string/split-lines
Available in:
BB
CLJ
CLJS
(
split-lines
[
s
]
)
Splits s on \n or \r\n. Trailing empty lines are not returned.
Examples
Sign in to contribute
Code
Platforms
Clojure
ClojureScript
Babashka
Submit
Cancel
No examples yet. Be the first to add one!
Categories
Strings › Manipulation
See Also
blank?
capitalize
ends-with?
escape
includes?
index-of
join
last-index-of
lower-case
re-quote-replacement
View source on GitHub ↗
← split
starts-with? →
All
⌘1
Clojure
⌘2
ClojureScript
⌘3
Babashka
⌘4