Skip to content

Commit e2f4e7c

Browse files
authored
Merge pull request #12 from calcit-lang/tuples
use tuples for protocols
2 parents 9d26515 + 770b2b3 commit e2f4e7c

File tree

7 files changed

+912
-686
lines changed

7 files changed

+912
-686
lines changed

.github/workflows/upload.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919

2020
- uses: supplypike/setup-bin@v3
2121
with:
22-
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.0/cr'
22+
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.5/cr'
2323
name: 'cr'
24-
version: '0.7.0'
24+
version: '0.7.5'
2525

2626
- uses: supplypike/setup-bin@v3
2727
with:
28-
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.0/caps'
28+
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.5/caps'
2929
name: 'caps'
30-
version: '0.7.0'
30+
version: '0.7.5'
3131

3232
- name: "deps"
3333
run: yarn && caps --ci
@@ -37,8 +37,7 @@ jobs:
3737

3838
- name: "js tests"
3939
run: >
40-
cr --entry test --emit-js -1
41-
&& env=ci node test.mjs
40+
cr --entry test --emit-js -1 && env=ci node test.mjs
4241
4342
- name: "compiles to js"
4443
run: >

README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
2-
Recollect in Calcit-js
3-
----
1+
## Recollect in Calcit-js
42

53
> Cumulo/recollect in calcit-js.
64
@@ -20,8 +18,8 @@ recollect.diff/patch-twig old-data new-data changes
2018

2119
Terms:
2220

23-
* Twig: data wrapped with a renderer to caching purpose
24-
* `:key`: to help diff maps
21+
- Twig: data wrapped with a renderer to caching purpose
22+
- `:key`: to help diff maps
2523

2624
### Purpose
2725

@@ -35,14 +33,14 @@ It's not tested yet, but is trying to trade memory and performance with caching.
3533

3634
### Diff Operations
3735

38-
number | name | meaning
39-
--- | --- | ---
40-
0 | tree-op-assoc | `assoc-in`
41-
1 | tree-op-dissoc | `dissoc-in`
42-
2 | tree-op-vec-append | append items to vector
43-
3 | tree-op-vec-drop | pop items from vector
44-
4 | tree-op-set-splice | remove and add to set
45-
5 | tree-op-map-splice | remove and add to map
36+
| tag | meaning |
37+
| ----------- | ---------------------- |
38+
| :assoc | `assoc-in` |
39+
| :dissoc | `dissoc-in` |
40+
| :vec-append | append items to vector |
41+
| :vec-drop | pop items from vector |
42+
| :set-splice | remove and add to set |
43+
| :map-splice | remove and add to map |
4644

4745
For vectors, data is supposed to be manipulated from the tail.
4846
Items in the new vector are mapped to its old ones by index.

calcit.cirru

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

0 commit comments

Comments
 (0)