{"id":"language--lists","name":"Lists","owner":"yeho","package":"language","kind":"language","signature":"list of Type\n[value, value]\nlist[index]\nlist.Add(value)","description":"list of T is an ordered typed value container with literals, indexing, count, and explicit mutation methods.","context":"Use a list when order and duplicates matter.","parameters":[],"returns":"","members":[],"tags":["Add","Contains","Remove","collections","count","cpu","language","list","of","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"language-core.md §3.4; tests/compiler/kyber/list-runtime/start.yh"},"status":"experimental","notes":["Collections are experimental in the 2026.1 conformance edition.","Index bounds remain part of the runtime contract."],"examples":[{"id":"complete","title":"Complete lists example","description":"Use a list when order and duplicates matter.","code":"list of text inventory = [\"map\", \"torch\"]\ninventory.Add(\"key\")\nfor item in inventory { Console.Log(item) }\n","tags":["cpu","language"],"run":"cpu-oracle","expected":null,"verifyRun":false,"manifest":"manifestVersion = \"2\"\npackage = \"api.example.language__lists\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","verification":"type checked","sha256":"d2b55e66573e22bcdc01f20e2c74cc5282c0512b0ab783a0aad1905539ff03bc","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=language--lists","json":"https://demonhunterlabs.com/reference/items/language--lists.json","markdown":"https://demonhunterlabs.com/reference/text/language--lists.md"}
