What do the Clojure docs mean by "associative support"? -


i reading clojure documentation on datatypes. under list of differences between deftype , defrecord states defrecord has "associative support". i'm new clojure , wondering if clarify term me.

"associative support" means object implements the associative interface. includes lookup key, , ability create new object additional key/value pair added.

in general, means objects created defrecord can -- large part -- treated if standard clojure maps, whereas when using deftype, if want functionality need implement yourself.


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -