Difference between revisions of "Self.len"
Jump to navigation
Jump to search
(Created page with "<c>self.len</c> returns the number of characters in a string, elements in a list, or key/value pairs in a map. May be called with function syntax or dot syntax. === Argument...") |
m (→Example) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<c>self.len</c> returns the number of characters in a string, elements in | <c>self.len</c> returns the number of characters in a string, elements in | ||
a list, or key/value pairs in a map. | a list, or key/value pairs in a map. | ||
− | + | ||
Line 14: | Line 14: | ||
=== Usage Notes === | === Usage Notes === | ||
− | <c> | + | <c>len</c> may be called with function syntax or dot syntax. |
== Example == | == Example == | ||
− | <ms>"hello".len // returns 5 | + | <ms>"hello".len // returns 5</ms> |
[[Category:Intrinsic Functions]] | [[Category:Intrinsic Functions]] |
Latest revision as of 03:35, 31 July 2020
self.len
returns the number of characters in a string, elements in
a list, or key/value pairs in a map.
Arguments
Parameter Name | Default Value | Meaning |
---|---|---|
self | list, string, or map | object to get the length of |
Usage Notes
len
may be called with function syntax or dot syntax.
Example
"hello".len // returns 5