recipes · recipe ·

Keep a little collection

Store several names and visit each one.

cpurecipe

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.

start.yh

Status: complete-program

Keep a little collection

Store several names and visit each one.

cpu · type checked

list of text names = ["Pip", "Fern"]
names.Add("Moss")
for name at index in names
{
    Console.Log(Text.Format("{0}: {1}", index, name))
}
project.mech
manifestVersion = "2"
package = "api.example.recipe__lists"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"
Expected output
0: Pip
1: Fern
2: Moss
Notes and source

Add one more name. Swap Pip and Fern in the starting list. Notice that order and count are different ideas.

demonhunterlabs/app/lib/yeho-walkthrough.ts