holgerbrandl / kalasim

Discrete Event Simulator
https://www.kalasim.org/
MIT License
68 stars 10 forks source link

collect() has unclear semantics #46

Closed holgerbrandl closed 8 months ago

holgerbrandl commented 2 years ago

A common usecase is to filter for just some events of interest. This should be definable at the collector declaration site, but isn't in v0.7.92:

val log = sim.collect<ResourceActivityEvent>().filter{ it.bla}