Hello all, I've pushed to Clojars the first cut of a new library: clojure-contracts-maps<https://github.com/ianrumford/clojure-contracts-maps>
The library enables you to apply contracts to the values of map keys by creating getter and putter accessor functions. It also has a few other features including the option to transform the new value of a key before the map is "updated" (e.g. to normalise the value in some way). Similarly you can transform the existing value (get) before its returned (to create a derivative "view"). I've put together a blog post<http://ianrumford.github.io/blog/2014/03/19/two-sugars-with-your-contracts-for-clojure-maps/> giving many more details. This library builds on my clojure-contracts-sugar<https://github.com/ianrumford/clojure-contracts-sugar> library I posted and blogged<http://ianrumford.github.io/blog/2014/02/19/a-little-sugar-with-your-clojure-aspect-contracts/> about a month or so ago. A shout-out to Fogus and his clojure.core.contracts library which made all this possible. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.