length

Definition: integer i = length(sequence s)
Description: Return the length of s. s must be a sequence or string. An error will occur if s is an atom.
Comments: The length of each sequence is stored internally by the interpreter.
Example 1:
length({{1,2}, {3,4}, {5,6}})   -- 3
Example 2:
length("") -- 0
Example 3:
length({}) -- 0
See Also: sequence