Self.len

From MiniScript Wiki
Revision as of 17:48, 16 March 2020 by 71.226.33.30 (talk) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

self.len 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.


Arguments

Parameter Name Default Value Meaning
self list, string, or map object to get the length of

Usage Notes

funcname may be called with function syntax or dot syntax.

Example

<ms>"hello".len // returns 5