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 Parameter | Default type | Description |
|---|---|---|
TSource | - | Element type of the source sequence. |
TResult | TSource | The return type of process(). |
Constructors
Constructor
new TyneqTerminalOperator<
TSource,TResult>(source):TyneqTerminalOperator<TSource,TResult>
Defined in: src/core/terminal/TyneqTerminalOperator.ts:19
Parameters
| Parameter | Type |
|---|---|
source | Enumerable<TSource> |
Returns
TyneqTerminalOperator<TSource, TResult>
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
source | readonly | Enumerable<TSource> | src/core/terminal/TyneqTerminalOperator.ts:17 |
Methods
process()
abstractprocess():TResult
Defined in: src/core/terminal/TyneqTerminalOperator.ts:25
Executes the terminal operation and returns the result.
Returns
TResult