Join Nostr
2026-08-24 21:16:36 UTC

ygrek on Nostr: ngn/#k tip of the day - building dict of two lists is straightforward ` !/(`a`b`c;1 2 ...

ngn/#k tip of the day - building dict of two lists is straightforward ` !/(`a`b`c;1 2 3)`, how to do the reverse? growler/k supports pattern matching / destructuring on the dict as so:
```
(k;v):!/(`a`b`c;1 2 3); (k;v)
(`a`b`c
1 2 3)
```
Also anonymous matching works :
```
:(;):`a`b`c!1 2 3
(`a`b`c
1 2 3)
```