length
For any type T,
length(collection: Bag<T>) : Integer
Returns the length of a collection. For example, length(["a", "b"]) is 2.
- Note that this method accepts both
ListsandBags─since Lists subtype Bags
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.