15
edits
Chris-barry (talk | contribs) (→size()) |
Chris-barry (talk | contribs) (→size()) |
||
Line 6: | Line 6: | ||
Usage: | Usage: | ||
size(''object''); | size(''object''); | ||
where ''object'' may be a ''string'', a ''vector'' or a ''hash''. | where ''object'' may be a ''string'', a ''vector'' or a ''hash''. | ||
Returns an intger equal to the number of characters in a ''string'' argument or the number of elements in a ''vector'' or ''hash''. | Returns an intger equal to the number of characters in a ''string'' argument or the number of elements in a ''vector'' or ''hash''. | ||
If the argument is a non-string scalar then the error '''object has no size()''' will be generated. | If the argument is a non-string scalar then the error '''object has no size()''' will be generated. | ||
edits