go-jsonnet/testdata/arrcomp3.input
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

3 lines
64 B
Plaintext

[[var, var2] for var in [1, 2, 3] for var2 in ["a", "b", "c"]]