Other Selectors
ByItemKey
Exact lookup by domain + pod.
sel = memory.by_item_key("animals", "cat")
ByItemDomain
All chunks in a given domain (prefix scan).
sel = memory.by_item_domain("animals")
WithCode / WithSparkle
Literal selector — returns a hypervector directly, no storage lookup.
sel = memory.with_code(some_hv)
sel = memory.with_sparkle("animals", "cat")
Joiner
Union of multiple selectors — returns results from each of the inner selectors.
sel = memory.joiner(
memory.by_item_key("animals", "cat"),
memory.by_item_key("animals", "dog"),
)
Range
Limits results to [start, start+limit).
limit=0 (default) implies no limit, and iteration continue until there is no more results.
sel = memory.range_sel(
memory.by_item_domain("animals"), start=0, limit=10)
OnlyDomain
Filters inner selector results by given domain.
sel = memory.only_domain(
"animals", inner_selector)