history

fun <T> history(maxSize: Int = 10, initialValue: List<T> = emptyList()): History<T>

factory-method to create a History (i.e. for a Store)

Parameters

maxSize

history keeps at most this many last values

initialValue

initial content of the history