Releases: Cumulo/bisection-key.cljs
Releases · Cumulo/bisection-key.cljs
Stable release
more helper functions related to nth
Details #6 .
add get helpers for min/max keys
Details #5 .
shorten generated key if possible
Refine
- For
adfd
andfdfwerwe
,c
will be generated. Simple keys may reduce computation and transfer size.
add prepend/append
; (def v {"a" 1, "b" 1})
(bisection-key.util/key-prepend v) ; "G"
(bisection-key.util/key-append v) ; "n"
(bisection-key.util/assoc-prepend v 2) ; (assoc v "G" 2)
(bisection-key.util/assoc-append v 2) ; (assoc v "n" 2)
new APIs: key-before, key-after
Feature
- with new functions, manipulating those maps would be easier
; (def v {"a" 1, "b" 1})
(bisection-key.util/key-before v "b") ; "aT"
(bisection-key.util/key-after v "a") ; "aT"
(bisection-key.util/assoc-after v "a" 2) ; (assoc v "aT" 2)
(bisection-key.util/assoc-before v "b" 2) ; (assoc v "aT" 2)