{"id":"word--where","name":"where","owner":"yeho","package":"language","kind":"keyword","signature":"where","description":"Filter collection iteration","context":"Use collection iteration when you care about elements rather than storage positions.","parameters":[],"returns":"","members":[],"tags":["keyword","language","loops","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"parser_loops.cpp; language-core.md §8.3"},"status":"stable","notes":["reverse appears after in and before the collection expression.","Map loops can bind key to value."],"examples":[{"id":"usage","title":"Values and indexes","description":"Use collection iteration when you care about elements rather than storage positions.","code":"list of int scores = [10, 20, 30]\nfor score at index in scores where score >= 20\n{\n    Console.Log(Text.Format(\"{0}: {1}\", index, score))\n}","manifest":"manifestVersion = \"2\"\npackage = \"api.example.word_where\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["language"],"verification":"type checked","run":"cpu-oracle","sha256":"7fc4769f8cfacaeefbd62626d0d50287d1a429ded2e1f9d12ec13d04f16fce8e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=word--where","json":"https://demonhunterlabs.com/reference/items/word--where.json","markdown":"https://demonhunterlabs.com/reference/text/word--where.md"}
