@fraczak/k
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "@fraczak/k", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "k-language for JSON-like data transformation", | ||
@@ -5,0 +5,0 @@ "main": "index.mjs", |
@@ -208,3 +208,3 @@ # k-language | ||
### List comprehension on vectors | ||
### List comprehension on vectors (experimental!) | ||
@@ -245,2 +245,11 @@ A vector can be "open" by PIPE (`|`) operator so the following partial function is applied to | ||
**WARNING**: The `CARET` operator makes composition not associative, i.e., if you use | ||
nested _list comprehension_ you cannot drop paranthesis anymore. | ||
E.g., `| (| PLUS ^ .0) ^` and `| | PLUS ^ .0 ^` are two different functions: | ||
```k | ||
{ |(| PLUS ^ .0) ^ x, | | PLUS ^ .0 ^ y }: | ||
[[[1,2],[3,4]],[[5,6],[7,8]]] --> {"x":[3,11],"y":[3,7]} | ||
``` | ||
--- | ||
@@ -247,0 +256,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
76549
1642
524