you got your clojure semantics in my mutable hash-map
Java Clojure
Switch branches/tags
Nothing to show
Latest commit e13fe6a Feb 28, 2014
Permalink
Failed to load latest commit information.
doc initial commit Feb 27, 2014
src fix file name Feb 27, 2014
.gitignore update .gitignore Feb 27, 2014
README.md fix typo Feb 27, 2014
project.clj fix file name Feb 27, 2014

README.md

Clojure and Java maps don't only differ in terms of mutability, they also have different equality semantics:

> (assoc {} 1 2, 1N 3)
{1 3}
> (doto (java.util.HashMap.) (.put 1 2) (.put 1N 3))
{1 2, 1N 3}

This library provides a mutable hash-map that behaves like a normal java.util.HashMap, but has Clojure's equality semantics:

> (doto (bizarro-collections/hash-map) (.put 1 2) (.put 1N 3))
{1 3}

usage

Add this to your project.clj:

[bizarro-collections "0.1.0"]

license

Copyright © 2014 Zach Tellman

Distributed under the GPL v2