An object that maps keys to values
Most of the methods are just a wrapper around Java Map class. All the overloaded methods are supported.
You can check their documentation for more detail. Java Map: https://docs.oracle.com/javase/8/docs/api/java/util/Map.html
// Create a map
var map = Map()
// Put something into the map
map.put("key", "something")
// Get it back
Con.out(map.get("key")) // something
any[] entries()
Returns an array of array where the inner array is the key-value pair [key, value].
Return | |
any[] | An array of array where the inner array is the key-value pair [key, value] |
any[] keys()
Returns all the keys contained in this map.
Return | |
any[] | keys contained in this map |
any[] values()
Returns all the values contained in this map.
Return | |
any[] | values contained in this map |
© 2024 - Macrorify by KoK-CODE