purescript / purescript-strings

String utility functions, Char type, regular expressions.
BSD 3-Clause "New" or "Revised" License
54 stars 71 forks source link

Split functions should return NonEmptyArray #106

Closed matthewleon closed 6 years ago

matthewleon commented 6 years ago

For backward-compatibility, String.split' and String.Regex.split' should be defined returning NonEmptyArrays.

matthewleon commented 6 years ago

I'm wrong here, splits can return empty arrays.