Apr-17-2019, 04:37 AM
in a function i have an iterator. i'd like to create a new iterator that wraps around that first iterator and modifies each data item. is there a way to do this without coding a generator? an example use case starts with a iterator that yields bytes items. i want to make (and return) an iterator that yields the same data transparently converted to str items.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.