aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/046-commit-replica/entries-price.aup
diff options
context:
space:
mode:
Diffstat (limited to 'research/experiments/046-commit-replica/entries-price.aup')
-rw-r--r--research/experiments/046-commit-replica/entries-price.aup11
1 files changed, 11 insertions, 0 deletions
diff --git a/research/experiments/046-commit-replica/entries-price.aup b/research/experiments/046-commit-replica/entries-price.aup
new file mode 100644
index 0000000..450b2bb
--- /dev/null
+++ b/research/experiments/046-commit-replica/entries-price.aup
@@ -0,0 +1,11 @@
+record Entry {
+ n = 0
+}
+state entries: list of Entry
+state count = 0
+input add = message { n: number }
+on add {
+ entries.append(Entry { n: add.n })
+ count = count + 1
+}
+view total = count