aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/027-apps-sending/dst.aup
diff options
context:
space:
mode:
Diffstat (limited to 'research/experiments/027-apps-sending/dst.aup')
-rw-r--r--research/experiments/027-apps-sending/dst.aup9
1 files changed, 9 insertions, 0 deletions
diff --git a/research/experiments/027-apps-sending/dst.aup b/research/experiments/027-apps-sending/dst.aup
new file mode 100644
index 0000000..c1c8acb
--- /dev/null
+++ b/research/experiments/027-apps-sending/dst.aup
@@ -0,0 +1,9 @@
+state n = 0
+state total = 0
+input take = message { k: u32 }
+on take {
+ n = n + 1
+ total = total + take.k
+}
+view count = n
+view sum = total