-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
mappingMapping languageMapping languagetestingTesting infrastructureTesting infrastructurev0.3.0Milestone: v0.3.0 Advanced MappingsMilestone: v0.3.0 Advanced Mappings
Description
Description
Implement each (iterate over array elements) and when (conditional blocks).
TDD Tests
each
-
each .items { rename .x -> .y }applies to every element -
each .items { set .total = .price * .qty }computed fields per element -
eachon non-array → error -
eachwith multiple operations inside block - Nested
each:each .groups { each .members { ... } } -
eachon empty array → no-op
when
-
when .type == "admin" { set .perms = [...] }applies conditionally -
whencondition false → block skipped -
whenwithelse(if we support it, or defer) - Multiple
whenblocks → all evaluated independently - Nested
wheninsideeach -
wheninsideeach: per-element conditional
Part of #3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
mappingMapping languageMapping languagetestingTesting infrastructureTesting infrastructurev0.3.0Milestone: v0.3.0 Advanced MappingsMilestone: v0.3.0 Advanced Mappings