aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/046-commit-replica/entries.aup
diff options
context:
space:
mode:
Diffstat (limited to 'research/experiments/046-commit-replica/entries.aup')
-rw-r--r--research/experiments/046-commit-replica/entries.aup12
1 files changed, 12 insertions, 0 deletions
diff --git a/research/experiments/046-commit-replica/entries.aup b/research/experiments/046-commit-replica/entries.aup
new file mode 100644
index 0000000..6a95acc
--- /dev/null
+++ b/research/experiments/046-commit-replica/entries.aup
@@ -0,0 +1,12 @@
+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
+view summed = sum(e.n for e in entries)