{"id":"recipe--lists","name":"Keep a little collection","owner":"yeho","package":"recipes","kind":"recipe","signature":"start.yh","description":"Store several names and visit each one.","context":"A list keeps values in order. It is useful for animals, collected items, dialogue lines, or scores. list of text means every entry in this list is text. Square brackets create the list and also let us look up one entry. The first entry has index zero. An index is an entry's position, not the entry itself.","parameters":[],"returns":"","members":[],"tags":["cpu","recipe"],"updated":"2026-09-09","source":{"repository":"demonhunterlabs","path":"app/lib/yeho-walkthrough.ts"},"status":"complete-program","notes":["Add one more name. Swap Pip and Fern in the starting list. Notice that order and count are different ideas."],"examples":[{"id":"program","title":"Keep a little collection","description":"Store several names and visit each one.","code":"list of text names = [\"Pip\", \"Fern\"]\nnames.Add(\"Moss\")\nfor name at index in names\n{\n    Console.Log(Text.Format(\"{0}: {1}\", index, name))\n}","manifest":"manifestVersion = \"2\"\npackage = \"api.example.recipe__lists\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu"],"run":"cpu-oracle","expected":"0: Pip\n1: Fern\n2: Moss","verification":"type checked","sha256":"6d92cde2c74a6b64c57c83b1383e17e7f76255d0dc7482ba30d038c7e4ba3447","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=recipe--lists","json":"https://demonhunterlabs.com/reference/items/recipe--lists.json","markdown":"https://demonhunterlabs.com/reference/text/recipe--lists.md"}
