aboutsummaryrefslogtreecommitdiffstats
path: root/examples/notes.aup
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-10-13 07:40:30 +0100
committereunhhu <[email protected]>2026-10-13 07:40:30 +0100
commit7e9fb3b2368634b9cfe4758e7e6b060a5a6fd523 (patch)
tree56a605805787638ea71e8221310b57cb4bd6c17f /examples/notes.aup
parent6209ddb42b953902828972b2e09f0296a51fe565 (diff)
downloadaup-7e9fb3b2368634b9cfe4758e7e6b060a5a6fd523.tar.gz
aup-7e9fb3b2368634b9cfe4758e7e6b060a5a6fd523.zip
Records in records, variants, lists in records and match (Pure 027's stage 2b): a field may hold a record or a variant (flattened into paths: at.x; a variant's case a field of its own, its value at name.case) or a list of anything (list of Json, a variant holding itself through a list); variant V { case, case(type) } and V.case(value) where items are made; match item { case(name) => ... _ => ... } over an item of a variant or a variant in a field (the binding a field, a list read through a register, or fields under it; missing cases refused); x.items.append(...), xs.last.items.append, xs[i].items.append; for, folds, count, first, last and [i] over a list in a field; xs[i] an item of an unkeyed list; number(t) of a text; examples/json_tree.aup; 16 diagnostics, an accepted program, a nested values test
Diffstat (limited to 'examples/notes.aup')
0 files changed, 0 insertions, 0 deletions