Octopus 🐙
A key-value composite where each value is bound with its key’s Sparkle. See Composites: Octopus for the conceptual overview.
Constructor
Keys are Pods. In Python, strings (and any value polymorphically convertible to Pod) are accepted and auto-converted.
oct = hv.Octopus(hv.Seed128(0, 42), ["color", "shape"], red, circle)
Key Methods
oct.value_by_key("color") # accepts Pod | str | int | Prewired