Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

ring.util.data/assoc-conj supports vectors as well as maps.

Interesting issue around assoc there; probably assoc should be working with anything clojure.lang.Associative, rather than explicitly maps and vectors. Might be something in Ambrose's thesis about this.
  • Loading branch information...
commit bacff4249ba2b0abd4cc4ffedcdeee2137988fdc 1 parent f3aea99
Andrew Brehaut authored

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. +5 2 src/ring/typed/util/data.clj
7 src/ring/typed/util/data.clj
@@ -6,5 +6,8 @@
6 6 IPersistentMap)))
7 7
8 8 (ann ring.util.data/assoc-conj
9   - [(IPersistentMap Any (U Any (IPersistentVector Any))) Any Any ->
10   - (IPersistentMap Any (U Any (IPersistentVector Any)))])
  9 + (Fn
  10 + [(IPersistentMap Any (U Any (IPersistentVector Any))) Any Any ->
  11 + (IPersistentMap Any (U Any (IPersistentVector Any)))]
  12 + [(IPersistentVector (U Any (IPersistentVector Any))) Integer Any ->
  13 + (IPersistentVector (U Any (IPersistentVector Any)))]))

0 comments on commit bacff42

Please sign in to comment.
Something went wrong with that request. Please try again.