export default function* ( it: Iterable, mapper: (val: T) => Iterable ): Generator { for (const val of it) { yield* mapper(val); } }