The problem is that map is lazy, so it can't be a random access range,
Sure it can. If the underlying range is random-access or bidirectional, so can map be. What can't be (as easily) done is caching of elements. -- Simen
The problem is that map is lazy, so it can't be a random access range,
Sure it can. If the underlying range is random-access or bidirectional, so can map be. What can't be (as easily) done is caching of elements. -- Simen