language · language ·

Lists

list of T is an ordered typed value container with literals, indexing, count, and explicit mutation methods.

AddContainsRemovecollectionscountcpulanguagelistofyeho

Use a list when order and duplicates matter.

list of Type
[value, value]
list[index]
list.Add(value)

Status: experimental

Complete lists example

Use a list when order and duplicates matter.

cpu · language · type checked

list of text inventory = ["map", "torch"]
inventory.Add("key")
for item in inventory { Console.Log(item) }
project.mech
manifestVersion = "2"
package = "api.example.language__lists"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"
Notes and source

Collections are experimental in the 2026.1 conformance edition.

Index bounds remain part of the runtime contract.

yeho/language-core.md §3.4; tests/compiler/kyber/list-runtime/start.yh