0.7.1 – String iterators
This release introduces string iterators into the API.
String.bytes/0
- iterates over individual bytes in a string (yieldsNumber
)String.chars/0
- iterates over Unicode codepoints in a string (yieldsString
)String.code_points/0
- same asString.chars/0
, but yieldsNumber
String.lines/0
- iterates over LF or CRLF separated lines in the string (yieldsString
)String.split/1
- splits the string into substrings using a separator, going from the left (yieldsString
)String.rsplit/1
- splits the string into substrings using a separator, going from the right (yieldsString
)