Generating functors with iterator behavior
问题 I have a question, which very likely has been asked like this before, because I think what I want is something that a considerable amount of people would want. However I could not come up with any way of expressing it that would return what I wanted in search (not google, not here). So maybe the answer here is just a single term used to describe what I mean. What I want to implement is something that roughly does the following: It can take a functor struct/class and generate a sequence of