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, andmapMaybefor strings. The output type of these should always be a string. -
Implement functions similar to
foldlandfoldMapfor strings. -
Implement a function similar to
traversefor strings. The output type should be a wrapped string. -
Implement the bind operator for strings. The output type should again be a string.