ExCellerate.Functions.General.Len (excellerate v0.4.0)

Copy Markdown View Source

Returns the length of a string or list.

For strings, returns the number of characters. For lists, returns the number of elements.

Examples

len('hello')  5
len('')       0
len(name)     5 (when name is 'Alice')