default

infix fun <R> R.default(defaultValue: R): Any

Sets the default value for the aggregation operation. All null values will be replaced with this value.

Can be used before or after into.

Receiver

The aggregation operation result.

Parameters

defaultValue

The default value for the result.