svghmi/pythonic.js
changeset 3485 5f417d3c2d03
parent 3484 32eaba9cf30e
child 3594 30f7eade322f
equal deleted inserted replaced
3484:32eaba9cf30e 3485:5f417d3c2d03
    32     }
    32     }
    33 
    33 
    34     async * [Symbol.asyncIterator]() {
    34     async * [Symbol.asyncIterator]() {
    35         for (const element of this) {
    35         for (const element of this) {
    36             yield await element;
    36             yield await element;
       
    37         }
       
    38     }
       
    39 
       
    40     forEach(callback) {
       
    41         for (const element of this) {
       
    42             callback(element);
    37         }
    43         }
    38     }
    44     }
    39 
    45 
    40     map(callback) {
    46     map(callback) {
    41         const result = [];
    47         const result = [];