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

Make assoc a generic function #17

Merged
merged 1 commit into from Feb 23, 2020

Conversation

brandonwillard
Copy link
Member

@brandonwillard brandonwillard commented Feb 23, 2020

This allows one to change the behavior of assoc, so that it can—say—update the substitution dict in-place, or perform checks before accepting a unification result. Furthermore, it's now possible to preserve the Mapping type after a new unification entry is added. The old approach would always return a plain dict no matter what type of Mapping was given to unify.

@brandonwillard brandonwillard added the enhancement New feature or request label Feb 23, 2020
@brandonwillard brandonwillard self-assigned this Feb 23, 2020
@brandonwillard brandonwillard merged commit fbca7bb into pythological:master Feb 23, 2020
@brandonwillard brandonwillard deleted the generic-assoc branch February 23, 2020 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant