mirror of
https://github.com/google/go-jsonnet.git
synced 2025-12-24 10:31:05 +01: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} }
|
|
|