powered by
Creates a counter value for use with Automerge. Counters are CRDT types that support conflict-free increment and decrement operations.
am_counter(value = 0L)
An am_counter object
am_counter
Initial counter value (default 0)
doc <- am_create() am_put(doc, AM_ROOT, "score", am_counter(0))
Run the code above in your browser using DataLab