The key type
The value type
Readonly[Readonly[ReadonlyatGet a reactive value for a key, returning Option.none() if not found. Use this for reactive UI bindings.
ReadonlyatGet the value for a key as an Effect, returning Option.none() if not found. Use this for one-time reads in imperative code.
ReadonlyatGet a reactive value for a key with a fallback if not found. Use this for reactive UI bindings when you have a default value.
ReadonlychangesStream of value changes (does not include current value)
ReadonlyclearRemove all entries.
ReadonlydeleteDelete a key. Returns true if the key existed.
ReadonlyentriesReactive array of entries.
ReadonlygetGet the current value
ReadonlyhasCheck if a key exists (reactive). Use this for reactive UI bindings.
ReadonlyhasCheck if a key exists as an Effect. Use this for one-time checks in imperative code.
ReadonlykeysReactive array of keys.
ReadonlyreplaceReplace the entire map contents.
ReadonlysetSet a value for a key.
ReadonlysizeReactive size of the map.
ReadonlyupdateUpdate the map using a function.
ReadonlyvaluesStream of all values (current value followed by changes)
ReadonlyvaluesReactive array of values.
A reactive Map with mutation methods that trigger updates. Mutations happen in-place without cloning, then trigger reactive updates.
Example