Files
processing4/mobile/web/reference/API/reverse.xml
2005-01-27 06:48:42 +00:00

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 &amp; 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>