Concatenate: Difference between revisions

From The K Language Wiki
Content added Content deleted
("Remove lowercase again - it is in the template now")
Tag: Manual revert
("Add category")
Line 19: Line 19:
1 2 3!2 3 4
1 2 3!2 3 4
</pre>
</pre>

[[Category:Operator verbs]]

Revision as of 02:41, 9 July 2022

Concatenate
x,y

The concatenate builtin concatenates its two arguments into a single unit, based on the type of the arguments.

If both x and y are dictionaries, the result is a dictionary, and otherwise the result is an array.

 1,2
1 2

1 2,"abc"
(1
 2
 "a"
 "b"
 "c")

(1 2!2 3),2 3!3 4
1 2 3!2 3 4