Closed LLFourn closed 7 months ago
So I tried to do this just now. The problem I ran into is that you can't really take an IntoIterator<Item=impl Borrow<Something>>
and then map Something
to a property of it (which we need to do here to get the backend scalar/point). We could take an Iterator
and map it but not an IntoIterator
since we can't borrow from each iteration. Making it take plain Iterator
would solve the issue @sanket1729 was having but seems like it would make the API more clunky where you want to pass in a vector without calling into_iter
yourself.
Opting to leave it like it is now until we think of some way of doing both.
see #116