Map a co generator stream over a function