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

Add common functions to iterate over zippers #15

Closed
5 tasks done
jfacorro opened this issue Apr 26, 2015 · 0 comments
Closed
5 tasks done

Add common functions to iterate over zippers #15

jfacorro opened this issue Apr 26, 2015 · 0 comments
Assignees

Comments

@jfacorro
Copy link
Contributor

  • zipper:map/2: like lists:map/2 but traversing the structure in a depth first way.
  • zipper:fold/3: like lists:fold/2 but traversing the structure in a depth first way.
  • zipper:filter/2: like lists:filter/2 but traversing the structure in a depth first way.
  • zipper:size/1: returns the amount of nodes in the tree structure.
  • zipper:edit_all/3: like zipper:edit/3 but applies the function to all nodes and returns the root of the modified tree.
@jfacorro jfacorro self-assigned this Apr 26, 2015
jfacorro added a commit that referenced this issue Apr 27, 2015
igaray added a commit that referenced this issue Apr 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant