Create a stream.Transform provided only a sync/async function to map over input