Skip to content

Add callback-based Array prototype methods#7

Merged
memburg merged 1 commit into
mainfrom
issue-2-array-callback-methods
May 26, 2026
Merged

Add callback-based Array prototype methods#7
memburg merged 1 commit into
mainfrom
issue-2-array-callback-methods

Conversation

@memburg
Copy link
Copy Markdown
Owner

@memburg memburg commented May 26, 2026

What changed

  • Added Array.prototype.forEach, map, filter, reduce, some, every, find, and findIndex to runtime type methods
  • Added a callback invocation bridge so type-level builtins can execute user and builtin callbacks
  • Added specs for happy paths, edge cases, and argument validation for the new methods
  • Updated reference docs to mark these Array methods as available

Validation

  • Ran crystal spec

Closes #2

@memburg memburg self-assigned this May 26, 2026
@memburg memburg added the enhancement New feature or request label May 26, 2026
@memburg memburg merged commit 3e8421d into main May 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add core callback-based Array methods

1 participant