-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Uri interface and protocol implementations
The Uri type was missing implementations for several of the methods that are part of the protocols and interfaces that Uri declares as implementing. The missing functions are: * count from IPersistentCollection * empty from IPersistentCollection * cons from IPersistentCollection (used by conj) * without from IPersistentMap (used by dissoc) * iterator from Iterable which IPersistentMap implies (used by reduce) There was also a problem with the implementation for entryAt which was not returning the expected IMapEntry type causing a runtime error when it was called (which find does). All these problems are now fixed and tested with unit tests.
- Loading branch information
Showing
2 changed files
with
58 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters