Skip to content

Commit fffdd2d

Browse files
committed
fix existed bug in gen result; tag 0.0.9
1 parent 2ef4ded commit fffdd2d

File tree

3 files changed

+52
-59
lines changed

3 files changed

+52
-59
lines changed

calcit.cirru

Lines changed: 47 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compact.cirru

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{} (:package |bisection-key)
33
:configs $ {} (:init-fn |bisection-key.main/main!) (:reload-fn |bisection-key.main/reload!)
44
:modules $ [] |calcit-test/
5-
:version |0.0.8
5+
:version |0.0.9
66
:entries $ {}
77
:files $ {}
88
|bisection-key.core $ {}
@@ -27,7 +27,7 @@
2727
map-indexed $ fn (idx char) ([] idx char)
2828
pairs-map
2929
|bisect-vec $ quote
30-
defn bisect-vec (xs ys result)
30+
defn bisect-vec (xs ys result) (; println xs ys result) (; js/console.log xs ys result)
3131
if
3232
and (empty? xs) (empty? ys)
3333
, result $ let
@@ -46,11 +46,7 @@
4646
(= delta 1)
4747
let
4848
rest-ys $ rest ys
49-
recur (rest xs)
50-
prepend
51-
or (rest rest-ys) ([])
52-
or (first rest-ys) 64
53-
conj result x
49+
recur (rest xs) ([] 64) (conj result x)
5450
(or (= delta 2) (= delta 3))
5551
recur (rest xs) (rest ys)
5652
conj result $ bit-shift-right (+ x y) 1
@@ -199,7 +195,7 @@
199195
|test-shorten $ quote
200196
deftest test-shorten
201197
is $ = |c (bisect |a34fd |f3554)
202-
is $ = |a34N (bisect |a34fd |a3554)
198+
is $ = |a34p (bisect |a34fd |a3554)
203199
|test-frequent-append $ quote
204200
deftest test-frequent-append $ is
205201
=

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.0.8",
2+
"version": "0.0.9",
33
"dependencies": {
44
"@calcit/procs": "^0.5.4"
55
},

0 commit comments

Comments
 (0)