PostProcessorFilter

constructor(filter: Filter<T, out TFilterResult>, result: TResult)(source)

Creates a new post-processor filter by specifying FilterResult.Match.result.

Parameters

filter

The sub-filter to evaluate

result

The (constant) result of the transform function


constructor(filter: Filter<T, out TFilterResult>, transform: (input: T, result: FilterResult<out TFilterResult>) -> FilterResult<out TResult>)(source)

Parameters

T

The type the filter accepts

TFilterResult

The type the sub-filter's returns

TResult

The type the filter returns

filter

The sub-filter to evaluate

transform

The function, which transforms the result of evaluate. Its input is both the input of evaluate and the result of filter