language.types · type ·
map of K to V
A lookup from keys of type K to values of type V, such as item names and prices.
A focused reference with a complete example. Numeric widths and experimental types still depend on the selected backend.
map of K to VStatus: documented
Lookup table
Use a map for lookup by identity or name when sequential scanning would hide the intent.
cpu · language · type checked
map of text to int power = ["sun" to 100, "moon" to 70]
int sunPower = power["sun"]
if power.Contains("moon")
{
Console.Log(Text.From(power["moon"]))
}
project.mech
manifestVersion = "2"
package = "api.example.language__maps"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
Notes and source
demonhunterlabs/app/lib/yeho-language-reference.ts