<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def flatMap(f: Callable, xs: Iterable) -> List: """ Map a function onto an iterable and flatten the result. """

    return flatten(lmap(f, xs))