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 setkeypath! #83

Merged
merged 5 commits into from
Jun 4, 2024
Merged

add setkeypath! #83

merged 5 commits into from
Jun 4, 2024

Conversation

CarloLucibello
Copy link
Member

No description provided.

@darsnack
Copy link
Member

I assume this is to set tree leaves to zero? Why not fmap! that applies a function to leaves without reconstructing?

@CarloLucibello
Copy link
Member Author

setkeypath! is more flexible than fmap!, e.g. it allows changing scalar leaves or replacing entire subtrees.

@CarloLucibello
Copy link
Member Author

merge?

@CarloLucibello CarloLucibello merged commit 54e238d into master Jun 4, 2024
8 checks passed
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.

2 participants