* Declare a sequence with a recurrence relation. * * @example * ```typescript * // Fibonacci sequence * ce.declareSequence('F', { * base: { 0: 0, 1: 1 }, * recurrence: 'F_{n-1} + F_{n-2}', * }); * ce.parse('F_{10}').evaluate(); // → 55 * ```
(name: string, def: SequenceDefinition)
| 1378 | _typeCacheGeneration(): number { |
| 1379 | if (this._valueShieldKeys.length > 0) return this._baseCacheGeneration(0); |
| 1380 | // Even keys select the ordinary cache cell. Reserve bit 1 for fallback. |
| 1381 | return this._configurationLifecycle.typeVersion * 4; |
| 1382 | } |
| 1383 | |
| 1384 | /** See `IComputeEngine._typeCacheFallbackGeneration()`. |
| 1385 | * @internal */ |
nothing calls this directly
no outgoing calls
no test coverage detected