UNPKG

@mojir/lits

Version:

Lits is a pure functional programming language implemented in TypeScript

10 lines (9 loc) 368 B
import type { SequenceDefinition } from '.'; /** * Generates the first 'n' terms of the Recamán sequence. * * @param n - Number of terms to generate * @returns Array containing the first n terms of the Recamán sequence */ export declare function generateRecamanSequence(n: number): number[]; export declare const recamanSequence: SequenceDefinition<'recaman'>;