add

fun add(value: T)(source)

Adds a value to the collector explicitly.

This method is useful when the unary + operator cannot be used, such as with numeric types where + is already defined as a sign operator.

Parameters

value

the value to add to the collector