def GCounter.pad

bend-kit-crdt@0.2.0.0 · crdt.bend:45

import bend-kit-crdt@0.2.0.0/crdt.bend as Crdt
import Base

45# Zeros for replicas 0 to i - 1, then 1 for replica i.
46def GCounter.pad(i: Nat) -> List<&2, U32>:
47  match i:
48    case 0n:
49      [1]
50    case 1n+p:
51      Con{0, GCounter.pad(p)}

Uses (3)

Used by (1)