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

Extra cast required for array projection #125

Open
jaredlll08 opened this issue Nov 24, 2023 · 1 comment
Open

Extra cast required for array projection #125

jaredlll08 opened this issue Nov 24, 2023 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@jaredlll08
Copy link
Member

var x = [1, 2, 3] as int[];
var y = new int[]<int>(x, (value => value * 2) as function(value as int) as int);

ideallythis is just:

var x = [1, 2, 3] as int[];
var y = new int[]<int>(x, (value => value * 2));
@kindlich
Copy link
Member

kindlich commented Jun 2, 2024

That constructor was removed, instead we should use x.map<int>(value => value * 2)
I'll leave this open for now so that we check this again while fixing the tests in ArrayOperatorTests.java

@kindlich kindlich added this to the Refactor milestone Jun 2, 2024
@kindlich kindlich added the bug Something isn't working label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants