reducer

Parameters

reducer

This function actually does the reduction. Before it is called, nulls are filtered out. The type of the values is passed as KType to the reducer.