mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +01:00
52 lines
1013 B
XML
52 lines
1013 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>concat()</name>
|
|
|
|
<category>Data</category>
|
|
|
|
<subcategory>Array Functions</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
String sa1[] = { "OH ", "NY ", "CA "};
|
|
String sa2[] = { "KY ", "IN ", "MA "};
|
|
String sa3[] = concat(sa1, sa2);
|
|
print(sa3); // Prints "OH NY CA KY IN MA "
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Concatenates two arrays. For example, concatenating the array { 1, 2, 3 } and the array { 4, 5, 6 } yields { 1, 2, 3, 4, 5, 6 }. Both parameters must be arrays of the same datatype.
|
|
</description>
|
|
|
|
<syntax>
|
|
concat(<c>array1</c>, <c>array2</c>)
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>array</label>
|
|
<description>booleans[], bytes[], chars[], ints[], floats[], or Strings[]</description>
|
|
</parameter>
|
|
|
|
<returns>Array (the same datatype as the input)</returns>
|
|
|
|
<related>
|
|
splice()
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Function</type>
|
|
|
|
<partof>Core</partof>
|
|
|
|
|
|
<level>Extended</level>
|
|
|
|
|
|
|
|
</root>
|