Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Literal::Array#to_a should take a block as a mapping #265

Open
joeldrapper opened this issue Dec 19, 2024 · 0 comments
Open

Literal::Array#to_a should take a block as a mapping #265

joeldrapper opened this issue Dec 19, 2024 · 0 comments
Assignees

Comments

@joeldrapper
Copy link
Owner

Unfortunately, Ruby has established the pattern of mapping things to turn them into arrays. Hash#map(&), for example. I don’t think Literal::Array#map should return an Array, but I do think this is a useful capability and we should provide it via Literal::Array#to_a(&).

@joeldrapper joeldrapper self-assigned this Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant