Skip to content

Conversation

@ColmBhandal
Copy link
Owner

@ColmBhandal ColmBhandal commented Jan 17, 2022

Description

Enhanced curry dictionary with new properties and methods. Also added enhancements for event wrappers, dictionary extension methods, and the immutable validated type. See CHANGELOG and/or linked issues for more detail.

Closes #109
Closes #111
Closes #112
Closes #113

Also updated it to take an equality function over values
Intentionally returning false value to support red-green TDD
This is due to the new running Count
Exposing a private var would allow uncontrollable state mutations, and a bad count
Non-matching keys will always now just be ignored & 0 returned, regardless or arity
Also updated the BinaryDigit - see changelog
This makes the updates to the underlying curry dictionary a bit safer
It means that the curry dictionary code accessing that underlying dictionary must explicitly consider count every time
This ensures listeners i.e. parent objects are notified whenever count is updated
Also added some tests of the nullary cases

Also updated immutable validated to override equals and hashcode
@ColmBhandal ColmBhandal merged commit b424c5f into develop Jan 18, 2022
@ColmBhandal ColmBhandal deleted the feature/curry-dictionary-updates branch January 18, 2022 10:32
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.

Validated Equality Dictionary Extension Methods Event Wrappers Curry Dictionary Enhancements

3 participants