File: listcomprehension.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.12.0.-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,072 kB
  • sloc: sh: 57; makefile: 17
file content (21 lines) | stat: -rw-r--r-- 518 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-- in.cue --
a: b: [for x in c if x.a > 0 {x.a + d}]

c: [{a: 1}, {a: 3}]
d: 2
-- out/dependencies/field --
line  reference    path of resulting vertex
1:    c         => c
1:    d         => d
-- out/dependencies/all --
line  reference    path of resulting vertex
1:    c         => c
1:    d         => d
-- out/dependencies/dynamic --
line  reference    path of resulting vertex
1:    c         => c
1:    d         => d
1:    x.a       => c[0].a
1:    d         => d
1:    x.a       => c[1].a
1:    d         => d