Key: Difference between revisions
Content added Content deleted
("Add category") |
("Better category ordering, add redirects to categories, fix pseudo-adverb categories") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{primitive|x key t}} |
{{primitive|x key t}} |
||
''' |
'''key''' is a primitive which creates a keyed table from a normal [[table]], essentially setting one or more columns given in <code>x</code> as the primary keys of <code>t</code>. |
||
<pre> t: +`a`b`c!(1 2;3 4;5 6) |
<pre> t: +`a`b`c!(1 2;3 4;5 6) |
||
Line 14: | Line 14: | ||
2 6|4</pre> |
2 6|4</pre> |
||
[[Category:Verbs]] |
|||
[[Category:Named verbs]] |
[[Category:Named verbs]] |
||
[[Category:Primitives]] |
Latest revision as of 06:41, 9 July 2022
Key
x key t
key is a primitive which creates a keyed table from a normal table, essentially setting one or more columns given in x
as the primary keys of t
.
t: +`a`b`c!(1 2;3 4;5 6) a b c - - - 1 3 5 2 4 6 `a`c key t a c|b - -|- 1 5|3 2 6|4