import { IterableX } from './iterablex.js'; /** * Creates an iterable from the specified elements. * * @template TSource The type of the elements to create an iterable sequence. * @param {...TSource[]} args The elements to turn into an iterable sequence. * @returns {IterableX} The iterable sequence created from the elements. */ export function of(...args: TSource[]): IterableX { return new OfIterable(args); } /** @ignore */ export class OfIterable extends IterableX { private _args: TSource[]; constructor(args: TSource[]) { super(); this._args = args; } *[Symbol.iterator]() { yield* this._args; } }