Skip to content

Releases: Cumulo/bisection-key.cljs

Stable release

14 Aug 04:29
Compare
Choose a tag to compare
0.1.6

release 0.1.6

more helper functions related to nth

05 Aug 16:42
Compare
Choose a tag to compare
Pre-release

Details #6 .

add get helpers for min/max keys

03 Aug 17:34
Compare
Choose a tag to compare
Pre-release

Details #5 .

shorten generated key if possible

14 Feb 10:12
Compare
Choose a tag to compare

Refine

  • For adfd and fdfwerwe, c will be generated. Simple keys may reduce computation and transfer size.

add prepend/append

31 Dec 03:44
Compare
Choose a tag to compare
; (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

30 Dec 17:03
Compare
Choose a tag to compare

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)