{"id":"word--add","name":"add","owner":"yeho","package":"language","kind":"keyword","signature":"add","description":"Add a planned item","context":"For Kyber-ready code, collect intended changes separately and apply them after the loop.","parameters":[],"returns":"","members":[],"tags":["boundaries","cpu","keyword","language","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"conformance-2026.1.json: planned-loop-mutations; parser_statements.cpp"},"status":"generated-cpp-only","notes":["Planned loop mutation is generated-C++ only.","The explicit two-phase alternative is easy to inspect and portable across current targets."],"examples":[{"id":"2","title":"Complete program","description":"Queue a structural collection edit while reading the original iteration snapshot.","code":"list of int scores = [10, -1, 20]\nfor score at index in scores\n{\n    if score < 0 { plan add 5 }\n}\nfor score in scores { Console.Log(Text.From(score)) }\n","tags":["cpu","language"],"run":"cpu-oracle","expected":null,"verifyRun":false,"manifest":"manifestVersion = \"2\"\npackage = \"api.example.word__add\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","verification":"type checked","sha256":"acf3a373bd1f24a28620937cfd3a2b742d6b25fff90765b61bb56062b66b791d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=word--add","json":"https://demonhunterlabs.com/reference/items/word--add.json","markdown":"https://demonhunterlabs.com/reference/text/word--add.md"}
