up previous next
len    --    the length of an object


Syntax
len(S: STRING): INT
len(L: LIST): INT

Description
This function returns the length of a string or a list.

NOTE: previously len could be applied to other types too; this is no longer supported: see NumCompts for module elements, NumRows for matrices, NumTerms for polynomials.

Example
/**/  len( [2,3,4] );
3
/**/  len( "string" );
6

See Also