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

Soportar un iterador externo de diccionarios #135

Open
RaniAgus opened this issue Mar 30, 2021 · 0 comments
Open

Soportar un iterador externo de diccionarios #135

RaniAgus opened this issue Mar 30, 2021 · 0 comments
Labels

Comments

@RaniAgus
Copy link
Contributor

RaniAgus commented Mar 30, 2021

Al igual que para listas, me parece una buena la idea de poder iterar un diccionario con operaciones que causen efecto de forma segura mientras lo recorro:

t_dictionary_iterator iter = dictionary_iterator_create(dict);
while (dictionary_iterator_has_next(iter)) {
    t_dictionary_entry entry = dictionary_iterator_next(dict);
    printf("%s -> %s\n", entry.key, to_string(entry.value));
}

relates to #110

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

No branches or pull requests

1 participant