Duplicates the subset described in the function and returns it in an array, deeply copying the array if [code]deep[/code] is true. Lower and upper index are inclusive, with the [code]step[/code] describing the change between indices while slicing.
</description>
</method>
<methodname="clear">
<description>
Clears the array. This is equivalent to using [method resize] with a size of [code]0[/code].