Skip to main content

length

For any type T,

length(collection: Bag<T>)  : Integer

Returns the length of a collection. For example, length(["a", "b"]) is 2.

length(str: String): Integer

Returns the number of characters in a string. For example, length("abc") is 3.

length(subnet: IpSubnet): Integer

Returns the length of the subnet. For example, length(ipSubnet("1.2.3.4/24")) is 24.

See also

Types

Functions