Hacker News new | ask | show | jobs
by mehrdadn 2012 days ago
Write me some code that shows me how to compose iterator-based ranges with just 1 iterator's worth of space in each range.
1 comments

It is not so clear to me what you mean. Maybe you can point to a better version (maybe what some other language does), and I can explain how I think the same can be done with C++20 ranges. I believe ranges are strictly more powerful than what other languages provide, and often they can be slimmer/more efficient for the common case.