If argument is a List , returns the length of list . Nested lists , if any, count as a single item. If argument is a String , returns length of a string , in characters. Any other type of argument results in error.
length ( item As Any ) As Integer
Argument | Type | Description |
---|---|---|
item | Any | List or String only; all other types result in an error. |
Intent >length({ :a, :b, :c, :d, :e}) --> 5
Intent >length({ :a, {:b, :c}, :d, :e}) --> 4
Intent >length("abcdefghijklmnopqrstuvwxyz") --> 26