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

Aml: Add fold/level_fold/find_map iterators and lookup handle->name #181

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rw-vanc
Copy link
Contributor

@rw-vanc rw-vanc commented Apr 21, 2023

I only really needed reverse name lookup, but I implemented some iterators along the way. fold and find_map iterate over all values. find_map does a sort of short circuit to reduce the number of visits, but does not necessarily stop on the first correct result. level_fold is similar to traverse but returns a value.

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

Successfully merging this pull request may close these issues.

None yet

1 participant