Skip to content

tyneq


tyneq / TyneqTerminalOperator

Abstract Class: TyneqTerminalOperator<TSource, TResult>

Defined in: src/core/terminal/TyneqTerminalOperator.ts:16

Abstract base for all terminal operators.

Remarks

Terminal operators consume a sequence and return a concrete value. Subclasses implement process() which enumerates this.source and returns the result. Register with @terminal or createTerminalOperator.

Type Parameters

Type ParameterDefault typeDescription
TSource-Element type of the source sequence.
TResultTSourceThe return type of process().

Constructors

Constructor

new TyneqTerminalOperator<TSource, TResult>(source): TyneqTerminalOperator<TSource, TResult>

Defined in: src/core/terminal/TyneqTerminalOperator.ts:19

Parameters

ParameterType
sourceEnumerable<TSource>

Returns

TyneqTerminalOperator<TSource, TResult>

Properties

PropertyModifierTypeDefined in
sourcereadonlyEnumerable<TSource>src/core/terminal/TyneqTerminalOperator.ts:17

Methods

process()

abstract process(): TResult

Defined in: src/core/terminal/TyneqTerminalOperator.ts:25

Executes the terminal operation and returns the result.

Returns

TResult