Get the length of an object
Integer_Type length (obj)
The length function may be used to get information about the
length of an object. For simple scalar data-types, it returns 1.
For arrays, it returns the total number of elements of the array.
If obj is a string, length returns 1 because a
String_Type object is considered to be a scalar. To get the
number of characters in a string, use the strlen function.
- slangrtl
-
__class_id,
__class_type,
__eqs,
__get_reference,
__is_initialized,
__pop_args,
__push_args,
_nargs,
_reshape,
_typeof,
array_info,
array_map,
assoc_get_keys,
bstrlen,
dup,
get_struct_field,
getenv,
init_char_array,
is_defined,
is_struct_type,
listdir,
reshape,
set_struct_field,
strlen,
strncmp,
strsub,
substr,
transpose,
typecast,
typeof,
where
|