Man
Container
Array
clear
Array.clear
Deletes all entries from the array.
Arguments
None
Return values
None
Complexity
O(getSize)
Example
"sl/array" useFile a: (1 2 0 5 "Hello" 0.3) makeArray; a [print "," print TRUE] enum LF print a.empty print a.clear LF print a.empty print
Output:
1,2,0,5,Hello,0.300000, FALSE TRUE