Concatenate: Difference between revisions

From The K Language Wiki
Content added Content deleted
(add concat page)
 
m (Lowercase title)
Line 1: Line 1:
{{lowercase title}}
{{primitive|x,y}}
{{primitive|x,y}}



Revision as of 20:57, 8 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