Crdt.KCounter.inc.go: def of bend-kit-crdt@0.2.0.0 Import: import bend-kit-crdt@0.2.0.0/crdt.bend as Crdt Lines 282-292 of bend-kit-crdt@0.2.0.0/crdt.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-crdt@0.2.0.0/crdt.bend&start_line=282&end_line=292 import Base # q is KCounter.head(k, s). def KCounter.inc.go(~K: Data, ~cmp: K -> K -> Cmp, s: KCounter, +k: K, q: Cmp) -> Maybe<&2, KCounter>: match s q: case KNil{} _: Some{KCon{k, 1, KNil{}}} case KCon{+x, +c, +r} LT{}: Some{KCon{k, 1, KCon{x, c, r}}} case KCon{+x, +c, +r} EQ{}: KCounter.inc.at(K, U32.is_lt(c, U32.inc(c)), x, U32.inc(c), r) case KCon{+x, +c, +r} GT{}: KCounter.cons(K, x, c, KCounter.inc.go(~K, ~cmp, r, k, KCounter.head(~K, ~cmp, k, r))) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Cmp https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.inc https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=bend-kit-crdt@0.2.0.0/crdt.bend&name=KCounter https://jend.leeeet.dev/definition.txt?path=bend-kit-crdt@0.2.0.0/crdt.bend&name=KCounter.cons https://jend.leeeet.dev/definition.txt?path=bend-kit-crdt@0.2.0.0/crdt.bend&name=KCounter.head https://jend.leeeet.dev/definition.txt?path=bend-kit-crdt@0.2.0.0/crdt.bend&name=KCounter.inc.at