mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +01:00
51 lines
792 B
XML
51 lines
792 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>reverse()</name>
|
|
|
|
<category>Data</category>
|
|
|
|
<subcategory>Array Functions</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
String sa[] = { "OH ", "NY ", "MA ", "CA "};
|
|
sa = reverse(sa);
|
|
print(sa); // Prints "CA MA NY OH "
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Reverses the order of an array.
|
|
</description>
|
|
|
|
<syntax>
|
|
reverse(<c>array</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>
|
|
sort()
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Function</type>
|
|
|
|
<partof>Core</partof>
|
|
|
|
|
|
<level>Extended</level>
|
|
|
|
|
|
|
|
</root>
|