export function* map( list: Iterable, mapper: (item: I) => O, ): Iterable { for (const item of list) { yield mapper(item); } }