filter (/=' ') "ab c" == "abc"
Is there a way to do the same but produce [Just ‘a’, Just ‘b’, Just ‘c’] in one step?
I could do
map Just (filter (/=' ') "ab c") == [Just 'a',Just 'b',Just 'c']
And it would be fine for the small amount of data I’m working with but am curious to do in one step.