is it possible to cut a string eg
"one , Two"
to a list
["one", "two"]
or just
"one", "two"
thanks
There's a whole module of functions for different strategies to split a list (such as a string, which is just a list of characters): Data.List.Split
Using this, you could do
import Data.List.Split
> splitOn " , " "one , Two"
["one","Two"]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With