jitx/stateful¶
Package name: jitx/stateful
Summary¶
Stateful¶
Multis¶
Function | Description |
---|---|
current | |
states | |
sub-current |
Functions¶
Function | Description |
---|---|
state-names | |
Stateful (+ 1) | |
get |
Definitions¶
Stateful¶
public defstruct Stateful<K, V> <: Equalable & Hashable
Multis¶
current¶
public defmulti current<?K, ?V> (x17044:Stateful<?K, ?V>) -> K&Equalable|False
- Returns
K&Equalable|False
states¶
public defmulti states<?K, ?V> (x17044:Stateful<?K, ?V>) -> Tuple<KeyValue<K&Equalable, V>>
- Returns
Tuple<KeyValue<K&Equalable, V>>
sub-current¶
public defmulti sub-current<?K, ?V> (x17044:Stateful<?K, ?V>, v:K&Equalable|False) -> Stateful<K, V>
- Returns
Stateful<K, V>
Functions¶
state-names¶
public defn state-names<?K, ?V> (s:Stateful<?K, ?V>) -> Tuple<K>
- Returns
Tuple<K>
Stateful¶
public defn Stateful<?K, ?V> (states:Seqable<KeyValue<?K&Equalable, ?V>>) -> Stateful<K, V>
- Returns
Stateful<K, V>
Stateful¶
public defn Stateful<?K, ?V> (current:?K&Equalable|False, states:Seqable<KeyValue<?K&Equalable, ?V>>) -> Stateful<K, V>
- Returns
Stateful<K, V>
get¶
public defn get<?K, ?V> (s:Stateful<?K, ?V>, state:?K&Equalable) -> V
- Returns
V
Related Packages¶
Forwarded by package: jitx