subspace icon indicating copy to clipboard operation
subspace copied to clipboard

Make std::ranges be IntoIterator

Open danakj opened this issue 10 months ago • 0 comments

To do this, we need to be able to implement IntoIterator for any type. That means it can't be a structural concept, but needs to be done through template specialization or whatever.

We should keep the into_iter() methods on types that are IntoIterator for convenience when you have the concrete type, but generic code would want to sus::iter::into_iter(x) instead. Then it can do so on a std::range.

Then sus::iter::from_range() can go away.

danakj avatar Sep 06 '23 03:09 danakj