native_methods/map_methods
library
Classes
-
Clear
-
Clears all entries from the map.
-
ContainsKey
-
Returns true if the map contains the specified key.
-
ContainsValue
-
Returns true if the map contains the specified value.
-
ForEach
-
Iterates over the map entries and calls the provided function for each entry.
The function should take two arguments: the key and the value.
-
IsEmpty
-
Returns true if the map is empty.
-
IsNotEmpty
-
Returns true if the map is not empty.
-
Keys
-
Returns a list of the map's keys.
-
Length
-
Returns the number of entries in the map.
-
Merge
-
Merges the specified map into this map.
-
Remove
-
Removes the entry with the specified key from the map.
-
ToString
-
Returns a string representation of the map. Simply printing a map yields the same result.
-
Values
-
Returns a list of the map's values.
Functions
-
registerMapExtensions()
→ void
-
Registers all native methods for the Map type.
This is called automatically by the VM.