Table of Contents

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

s Stream<T>

The stream.

value TResult

The 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

T

The type of the stream.

TResult

The type of the constant value fired by the returned stream.