Implement ch11/useful_functions_for_applicative examples