Nasal library functions: Difference between revisions

Jump to navigation Jump to search
Line 4: Line 4:


== size() ==
== size() ==
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''.
'''Return value'''
 
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.
15

edits

Navigation menu