mirror of
https://github.com/google/go-jsonnet.git
synced 2025-08-11 08:47:11 +02:00
* 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.
2 lines
49 B
Plaintext
2 lines
49 B
Plaintext
std.flatMap(function(x) [x, x], [1, 2, 3, 4, 5])
|