create dict

From The K Language Wiki
Revision as of 08:18, 14 July 2021 by Razetime (talk | contribs) (add create dict page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Create dict
x!y

The create dict primitive takes two lists of equal length and makes a dictionary using the left argument as keys, and the right argument as the values.

  `a`b!3 4
[a:3;b:4]
  4 5!6 7
4 5!6 7