com.phasmidsoftware.visitor.misc.FunctionMapJournal
See theFunctionMapJournal companion class
object FunctionMapJournal
An implementation of a journal backed by a map and a key-value computing function.
The FunctionMapJournal stores a map of keys and their associated values, as well as a function f that computes the value for a given key. It provides methods to compute values, append to the journal by applying the function f to a key, and create new instances with updated maps.
This class is designed to be used in scenarios where values for keys need to be dynamically generated or updated using a predefined function.
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FunctionMapJournal.type
Members list
In this article