Skip to content

Call echo in a custom function should not echo "Pending..." #111

@pearmini

Description

@pearmini
//➜ Pending…
function raster(callback, [width, height]) {
  let output = "";
  for (let i = 0; i < height; i++) {
    const x = i / height - 1;
    for (let j = 0; j < width; j++) {
      const y = j / width - 1;
      output += callback(x, y);
    }
  }
  echo(output);
}

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions