Mwnci len() Function

Syntax

len(variable)

Description

The len() function returns the length of the variable. The variable can be one of string, array, or hash.

Example

a="1234"
b=[1,2,3,4,5]
c={"foo": 1, "wib": "ble"}
println(len(a), " ",len(b), " ", len(c))