{"id":"ui--yuiRetainedKeyIndex","name":"yuiRetainedKeyIndex","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiRetainedKeyIndex","description":"A yui retained key index record carrying bucketCount, bucketHeads, keys, values, nextNodes, and related state.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"bucketCount","kind":"field","type":"int","description":"Stores bucket count as int.","signature":"int bucketCount","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"bucketHeads","kind":"field","type":"list of int","description":"Stores bucket heads as list of int.","signature":"list of int bucketHeads","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"keys","kind":"field","type":"list of text","description":"Stores keys as list of text.","signature":"list of text keys","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"values","kind":"field","type":"list of int","description":"Stores values as list of int.","signature":"list of int values","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"nextNodes","kind":"field","type":"list of int","description":"Stores next nodes as list of int.","signature":"list of int nextNodes","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"keyComparisons","kind":"field","type":"int","description":"Stores key comparisons as int.","signature":"int keyComparisons","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiRetainedKeyIndex","kind":"constructor","parameters":[{"name":"bucketCount","type":"int","description":"Bucket count."}],"returns":"void","signature":"yuiRetainedKeyIndex(int bucketCount)","description":"Yui retained key index.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"Bucket","kind":"method","parameters":[{"name":"key","type":"text","description":"Key."}],"returns":"int","signature":"Bucket(text key) returns int","description":"Bucket.","tags":["thing","method","ui"],"exampleId":"method-Bucket-7","updated":"2026-09-09"},{"name":"Find","kind":"method","parameters":[{"name":"key","type":"text","description":"Key."}],"returns":"int","signature":"Find(text key) returns int","description":"Find.","tags":["thing","method","ui"],"exampleId":"method-Find-8","updated":"2026-09-09"},{"name":"Set","kind":"method","parameters":[{"name":"key","type":"text","description":"Key."},{"name":"value","type":"int","description":"Value."}],"returns":"void","signature":"Set(text key, int value)","description":"Set.","tags":["thing","method","ui"],"exampleId":"method-Set-9","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/render-50-retained-fragments.yh","line":395,"sha256":"1062403654e37b95d0b190990ad54290638b64d047aa164ee82220bd91ac0674"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use yuiRetainedKeyIndex","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using ui\n\n// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.\nyuiRetainedKeyIndex sample = yuiRetainedKeyIndex(1)\nConsole.Log(Text.From(sample.bucketCount))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiretainedkeyindex\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"acf9ca5b28020c5bc28ab0780e7d47c7b0ef84d3eb8de7af2fe785d677346bae","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Bucket-7","title":"yuiRetainedKeyIndex.Bucket","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Bucket.\nyuiRetainedKeyIndex instance = yuiRetainedKeyIndex(1)\ntext argument_key = \"argument key\"\nint result = instance.Bucket(argument_key)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiretainedkeyindex\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"ded583450dac89fa5ab00f655c9a4146ada2f2068cbcf648c0e67bcaa928d708","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Find-8","title":"yuiRetainedKeyIndex.Find","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Find.\nyuiRetainedKeyIndex instance = yuiRetainedKeyIndex(1)\ntext argument_key = \"argument key\"\nint result = instance.Find(argument_key)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiretainedkeyindex\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"10f93e86b9122a6a223cf8c43ce614824605366e55257747eec2cfaa63f3cf01","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Set-9","title":"yuiRetainedKeyIndex.Set","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Set.\nyuiRetainedKeyIndex instance = yuiRetainedKeyIndex(1)\ntext argument_key = \"argument key\"\nint argument_value = 1\ninstance.Set(argument_key, argument_value)\nConsole.Log(\"Set completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiretainedkeyindex\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"10d1dbdfe7874ef309ead2e8521afc51c1ba0596c2dc9cd55a3518e8969d2c1e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["bucketCount","bucketHeads","keys","values","nextNodes","keyComparisons","yuiRetainedKeyIndex","Bucket","Find","Set"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiRetainedKeyIndex","json":"https://demonhunterlabs.com/reference/items/ui--yuiRetainedKeyIndex.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiRetainedKeyIndex.md"}
