x/datastructure@1.2.1/blockChain/generators.ts

Implement different Data Structures using TypeScript. Deno Third-party Module.
Latest
generators.ts
export function *searchGenerator(key: string, chain: Array<any>) { for (let block in chain) { if (chain[block].data.key === key) { yield chain[block] } } return false}
export function *iteratorGenerator(chain: Array<any>) { for (let block in chain) { yield chain[block] } return false}