of

fun <S, E : Any> of(stream: StateEvent<S>, eventIndex: Int): StateTypedEvent<S, E>

The eventIndex-th event of stream, which must be an E; the runtime and the test DSL build them.