go-jsonnet/testdata/arrcomp3.golden
Stanisław Barzowski c26c50c04b Array comprehensions (#35)
* Array comprehensions

Implemented using flatMap.

The representation in AST was changed - now it expresses
the semantic structure better.

Ifs in comprehensions are not supported yet, but easy.
2017-09-07 11:55:33 -04:00

39 lines
273 B
Plaintext

[
[
1,
"a"
],
[
1,
"b"
],
[
1,
"c"
],
[
2,
"a"
],
[
2,
"b"
],
[
2,
"c"
],
[
3,
"a"
],
[
3,
"b"
],
[
3,
"c"
]
]