What is the difference
> between a map and a vector?
A vector can only use integers to select its elements. v[0], v[1], v[42], etc.
A map can use any string m["alpha"], m["x*2"]. m["123abc"]
What use is that? A map is like a dictionary: the index (e/g "alpha") is the
term you are looking up, and the result is the definition. The term you are
looking up can be any string; so can the result. The term you are looking up
is sometimes called the "key", as in the help.
Of course, the dictionary is only an analogy; what you look up just needs to be
some string you want to associate with the key, not the definition of the key.
For example, you could associate the French month to the English month
local m=map.create(12)
m["january"]="janvier"
m["february"]="fevrier"
etc.
win.debug(m[input("month?")})
translates the month.
The name "map" comes from mathematical concept of mapping one set of strings to
another.