Skip to content

New Map Functions

Irtsa edited this page Sep 26, 2024 · 1 revision

Map Functions

These functions extend from the current Map object/class from greyscript.

The following are a list of new functions that can be utilized.





max

Will return the key that has the longest value.

print({"a" : 123, "b": 1}.max)
-- "a"


min

Will return the key that has the shortest value.

print({"a" : 123, "b": 1}.max)
-- "b"

Clone this wiki locally