Skip to content

Commit

Permalink
fix existed bug in gen result; tag 0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Nov 12, 2021
1 parent 2ef4ded commit fffdd2d
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 59 deletions.
97 changes: 47 additions & 50 deletions calcit.cirru

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 4 additions & 8 deletions compact.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{} (:package |bisection-key)
:configs $ {} (:init-fn |bisection-key.main/main!) (:reload-fn |bisection-key.main/reload!)
:modules $ [] |calcit-test/
:version |0.0.8
:version |0.0.9
:entries $ {}
:files $ {}
|bisection-key.core $ {}
Expand All @@ -27,7 +27,7 @@
map-indexed $ fn (idx char) ([] idx char)
pairs-map
|bisect-vec $ quote
defn bisect-vec (xs ys result)
defn bisect-vec (xs ys result) (; println xs ys result) (; js/console.log xs ys result)
if
and (empty? xs) (empty? ys)
, result $ let
Expand All @@ -46,11 +46,7 @@
(= delta 1)
let
rest-ys $ rest ys
recur (rest xs)
prepend
or (rest rest-ys) ([])
or (first rest-ys) 64
conj result x
recur (rest xs) ([] 64) (conj result x)
(or (= delta 2) (= delta 3))
recur (rest xs) (rest ys)
conj result $ bit-shift-right (+ x y) 1
Expand Down Expand Up @@ -199,7 +195,7 @@
|test-shorten $ quote
deftest test-shorten
is $ = |c (bisect |a34fd |f3554)
is $ = |a34N (bisect |a34fd |a3554)
is $ = |a34p (bisect |a34fd |a3554)
|test-frequent-append $ quote
deftest test-frequent-append $ is
=
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.8",
"version": "0.0.9",
"dependencies": {
"@calcit/procs": "^0.5.4"
},
Expand Down

0 comments on commit fffdd2d

Please sign in to comment.