Matt Braymer-Hayes
08/30/2024, 3:58 PMMapState
(e.g., MapState.keys()
, MapState.values()
, MapState.entries()
), are there any ordering guarantees (e.g., lexicographical order)?Ken Krugler
08/31/2024, 12:44 AMMapState
in order, you can use additional state. For example, if you were trying to implement a FIFO queue…
1. Use MapState<Long, YourType>
, where the Long
is an index.
2. Then have two additional ValueState<Long>
states, one for the head index and one for the tail index.Matt Braymer-Hayes
09/03/2024, 1:58 PM