Download node_modules/fast-check/lib/stream/LazyIterableIterator.js from Really-amin/Datasourceforcryptocurrency: direct link, hf CLI and curl.
- Browser
- Download file 562 Bytes
-
https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/stream/LazyIterableIterator.js
- Command line
-
hf download hf://spaces/Really-amin/Datasourceforcryptocurrency@250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/stream/LazyIterableIterator.js
-
curl -L -o LazyIterableIterator.js https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/stream/LazyIterableIterator.js
562 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.makeLazy = makeLazy; | |
| class LazyIterableIterator { | |
| constructor(producer) { | |
| this.producer = producer; | |
| } | |
| [Symbol.iterator]() { | |
| if (this.it === undefined) { | |
| this.it = this.producer(); | |
| } | |
| return this.it; | |
| } | |
| next() { | |
| if (this.it === undefined) { | |
| this.it = this.producer(); | |
| } | |
| return this.it.next(); | |
| } | |
| } | |
| function makeLazy(producer) { | |
| return new LazyIterableIterator(producer); | |
| } | |