Open neongreen opened 8 years ago
For instance, splitting a string like "foo12bar34" into [12,34] should be a one-liner.
"foo12bar34"
[12,34]
fmap read . wordsBy isAlpha
Sure, split partly fulfills this role, but it only works for simple cases and doesn't allow for error messages when the string doesn't match the schema.
For instance, splitting a string like
"foo12bar34"
into[12,34]
should be a one-liner.