Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[suggestion] implement std::iter::DoubleEndedIterator #6

Open
petar-dambovaliev opened this issue Jan 31, 2022 · 0 comments
Open

[suggestion] implement std::iter::DoubleEndedIterator #6

petar-dambovaliev opened this issue Jan 31, 2022 · 0 comments

Comments

@petar-dambovaliev
Copy link

Hello, i have a use case for parsing backwards.
I am writing a library to calculate tax returns from stock sales and some brokers export large csv files containing all transactions for a given period.
The rows are ordered as first at the top and last at the bottom.
If i can use DoubleEndedIterator::next_back, i can prevent reading the whole file in memory, to construct a VecDeque.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant