GroupResult
Aggregated snapshot of a StatGroup: a map from StatKey.name to the per-slot Result. Backs the result side of the schema layer; use the get(StatKey) operators below for type-safe lookup rather than going through results by string key.
Nested groups produce nested GroupResults; the get overloads taking a GroupStatKey chain through one level at a time.
@Serializable like every other Result, so a GroupResult produced by one process is the unit of merge consumed by another.
Properties
Functions
Typed lookup of the nested GroupResult itself; first step of dotted access.
Typed lookup by StatKey. The phantom R on the key narrows the return type so the caller doesn't cast. Throws if no result has been recorded for that key; the error message lists the available keys so a typo is obvious at the throw site.
Typed lookup into a nested GroupResult: parent[groupKey, innerKey].
Typed lookup into a nested GroupResult via a key-selector lambda. Lets the caller write result[outer.auth] { successes } rather than result[outer.auth][outer.auth.keys.successes].
GroupResult
get
Typed lookup by StatKey. The phantom R on the key narrows the return type so the caller doesn't cast. Throws if no result has been recorded for that key; the error message lists the available keys so a typo is obvious at the throw site.
Typed lookup into a nested GroupResult: parent[groupKey, innerKey].
Typed lookup of the nested GroupResult itself; first step of dotted access.
Typed lookup into a nested GroupResult via a key-selector lambda. Lets the caller write result[outer.auth] { successes } rather than result[outer.auth][outer.auth.keys.successes].