Exercises part 1
In these exercises, you are supposed to implement a bunch of utility functions for consuming and converting strings. I don't give the expected types here, because you are supposed to come up with those yourself.
-
Implement functions similar to
map
,filter
, andmapMaybe
for strings. The output type of these should always be a string. -
Implement functions similar to
foldl
andfoldMap
for strings. -
Implement a function similar to
traverse
for strings. The output type should be a wrapped string. -
Implement the bind operator for strings. The output type should again be a string.