Skip to main content

CODE_CRDT_TALLY

Constant CODE_CRDT_TALLY 

Source
pub const CODE_CRDT_TALLY: &str = r#"# Tally
-- A Tally counts both ways and still merges cleanly across replicas.

## Definition
A Score is Shared and has:
    points: Tally.

## Main
Let mutable s be a new Score.
Increase s's points by 100.
Show "after +100: {s's points}".

Decrease s's points by 30.
Show "after -30: {s's points}".

Increase s's points by 10.
Show "final: {s's points}".
"#;