-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PersistentHashMap ported from Clojure
In addition to the PHM implementation, this commit introduces two new bit ops, bit-shift-right-zero-fill (with accompanying compiler macro) and bit-count. An internal general purpose coercive-= compiler macro and two special purpose internal compiler macros mask and bitpos are also introduced. INode operations are implemented directly on the node objects (via Object in deftype). cljs.core/hash-map and compiler's emit :map now use PersistentHashMap, so maps and sets are now persistent by default. ObjMap and HashMap are now marked deprecated.
- Loading branch information
1 parent
053b7fd
commit ef0d525
Showing
3 changed files
with
479 additions
and
13 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
Oops, something went wrong.