Self.len

From MiniScript Wiki
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.


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

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