aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/041-batches/costs/adds.aup
blob: 9dcf3df02fb7816cfca4eb990f8166532ecdcc87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
record Cell {
  at = 0
  v = 0
}
state out = 0
input go = message {
  n: u32
}
on go {
  let table: list of Cell by at
  for c in 0 .. go.n * 50 {
    table.add(Cell { at: c })
  }
  out = table.count
}