up previous next
len --
the length of an object
|
len(S: STRING): INT
len(L: LIST): INT |
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.
/**/ len( [2,3,4] );
3
/**/ len( "string" );
6
|