kumulant

ResultList

@Serializable
@SerialName(value = "ResultList")
data class ResultList<R : Result>(val names: List<String>, val results: List<R>) : Result(source)

Ordered list of results with per-entry names. Produced by ListStats and the vector expansion helpers.

Names disambiguate entries for map-style lookup while preserving positional order. Constructing with duplicate names throws - pass explicit names to disambiguate.

Positional producers (e.g. vector-expanded stats) use the secondary constructor which auto-assigns index-based names ("0", "1", ...).

Constructors

Link copied to clipboard
constructor(names: List<String>, results: List<R>)
constructor(results: List<R>)

Positional constructor: auto-assigns index-based names ("0", "1", ...).

Properties

Link copied to clipboard

Per-entry names; same length as results and required to be unique.

Link copied to clipboard
val results: List<R>

Ordered list of per-entry snapshots.

Functions

Link copied to clipboard
fun toMap(): Map<String, R>

Returns a name-to-result mapping preserving entry order.

ResultList

constructor(names: List<String>, results: List<R>)(source)


constructor(results: List<R>)(source)

Positional constructor: auto-assigns index-based names ("0", "1", ...).

names

Per-entry names; same length as results and required to be unique.

results

Ordered list of per-entry snapshots.

toMap

fun toMap(): Map<String, R>(source)

Returns a name-to-result mapping preserving entry order.