Dever v0.0.2

This commit is contained in:
Codex committed 2026-11-27 06:03:56 +00:00
commit e6e175ebcf
816 files changed
+120349

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
flow change(number: Int, title: Text) (out: Int)
| step | kind | do |
| created | data | data.create({ number = number, title = title, amount = number }) |
| found | data | data.get(created.id) |
| updated | data | data.update(found.id, { amount = found.amount + 1 }) |
| out | calc | updated.amount |
loop changes(numbers: List<Int>, title: Text) (out: Int)
| each number in numbers | result |
| out | sum change(number, title) |
flow batch(numbers: List<Int>, title: Text) (checksum: Int, count: Int)
| step | kind | do |
| removed | data | data.delete({ where = number >= 0 }) |
| checksum | loop | changes(numbers, title) |
| count | data | data.count() |
flow count() (out: Int)
| step | kind | do |
| out | data | data.count() |