mirror of
https://github.com/google/go-jsonnet.git
synced 2026-04-08 06:51:04 +02:00
4 lines
103 B
Jsonnet
4 lines
103 B
Jsonnet
local obj = { [x]: if x == "a" then 42 else $.a + 1 for x in ["a", "b", "c"] };
|
|
{ obj: obj + {a: 1} }
|
|
|