Method MapTo
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
MapTo<T, TResult>(Stream<T>, TResult)
Transform the stream values to the specified constant value.
public static Stream<TResult> MapTo<T, TResult>(this Stream<T> s, TResult value)
Parameters
sStream<T>The stream.
valueTResultThe constant value to return from this mapping.
Returns
- Stream<TResult>
A stream which fires the constant value for each value fired by this stream.
Type Parameters
TThe type of the stream.
TResultThe type of the constant value fired by the returned stream.