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

Consider adding LL_REVERSE to utlist.h #197

Open
u-u-h opened this issue Feb 13, 2020 · 1 comment
Open

Consider adding LL_REVERSE to utlist.h #197

u-u-h opened this issue Feb 13, 2020 · 1 comment

Comments

@u-u-h
Copy link

u-u-h commented Feb 13, 2020

It's a common paradigm to use LL_PREPEND in a loop and a REVERSE step afterwards to avoid LL_APPEND in list construction. It would be nice to have that built-in in utlist.h

@Quuxplusone
Copy link
Collaborator

Yep, makes sense to me. Pull requests welcome; or if not an implementation, at least some sample test cases showing the desired usage would be nice.

Presumably DL_REVERSE and CDL_REVERSE should be added in the same PR.

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

2 participants