Iterates over lines in a string.
Line-endings are \n
or \r\n
. The line endings are not included in the output.
(let text "Monsters.\nHumans.\nEveryone.")
(let ar ..(lines text))
(prn ar) ; prints ("Monsters." "Humans." "Everyone.")
Iterates over lines in a string.
Line-endings are \n
or \r\n
. The line endings are not included in the output.
(let text "Monsters.\nHumans.\nEveryone.")
(let ar ..(lines text))
(prn ar) ; prints ("Monsters." "Humans." "Everyone.")