Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Octopus 🐙

A key-value composite where each value is bound with its key’s Sparkle. See Composites: Octopus for the conceptual overview.

Constructor

oct = hv.Octopus(hv.Seed128(0, 42), ["color", "shape"], red, circle)

Key Methods

oct.value_by_key("color") # returns the value, or raises ValueError
Last change: , commit: 34eaa34