Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Updated map-utils docs

  • Loading branch information...
commit f0be61558cf0c43b1b0bd8237dcbfd1ece2f58cf 1 parent ab7fe78
Sean authored
Showing with 0 additions and 16 deletions.
  1. +0 −16 docs/map-utils.markdown
16 docs/map-utils.markdown
@@ -142,22 +142,6 @@ key :count.
user=> ((trans "a" (comp inc #(get % "a"))) abc123)
{:a 1, :b "B", :c "C"}
-trans is a little cumbersome, generating a closure. There is also a
-deftrans macro. It creates a trans and stores it in the provided
- user=> (counter abc123)
- {:count 3, "a" 1, "b" 2, "c" 3}
- user=> (deftrans inc-a :a (comp inc :a))
- #'user/inc-a
- user=> (inc-a abc123)
- {:a 1, :b "B", :c "C"}
##Using a closure
Let's revisit the fact that trans generates a closure. We can use the
Please sign in to comment.
Something went wrong with that request. Please try again.