language · keyword ·
where
Filter collection iteration
Use collection iteration when you care about elements rather than storage positions.
whereStatus: stable
Values and indexes
Use collection iteration when you care about elements rather than storage positions.
language · type checked
list of int scores = [10, 20, 30]
for score at index in scores where score >= 20
{
Console.Log(Text.Format("{0}: {1}", index, score))
}project.mech
manifestVersion = "2"
package = "api.example.word_where"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
Notes and source
reverse appears after in and before the collection expression.
Map loops can bind key to value.
yeho/parser_loops.cpp; language-core.md §8.3