type single
Returns a Reducer that only produces an output value when having receives exactly one input value, otherwise will return the otherwise
value or undefined.
Definition
single: {
<T>():
Reducer
<T, T
|
undefined>;
<T, O>(otherwise:
OptLazy
<O>):
Reducer
<T, T
|
O>;
}