Home

cuesonnet @b55d8f76ac5a85758c2085c0c7feefca6dc4b9cf - refs - log -
-
https://git.jolheiser.com/cuesonnet.git
CUE + Jsonnet
cuesonnet / testdata / jsonnet / comprehensions / data.jsonnet
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
local nums = [1, 2, 3, 4, 5];

[
  {
    index: n - 1,
    squared: n * n,
    label: 'item-' + std.toString(n),
  }
  for n in nums
]