Skip to content

new APIs: key-before, key-after

Compare
Choose a tag to compare
@tiye tiye released this 30 Dec 17:03
· 38 commits to master since this release

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)