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

table.filter #335

Closed
Sainan opened this issue Aug 4, 2023 · 0 comments · Fixed by #342
Closed

table.filter #335

Sainan opened this issue Aug 4, 2023 · 0 comments · Fixed by #342
Labels
enhancement New feature or request

Comments

@Sainan
Copy link
Member

Sainan commented Aug 4, 2023

local t = { 1, 2, 3, 4, 5 }
t = table.filter(t, |x| -> x % 2 ~= 0)
-- t should now be { 1, 3, 5 }
@Sainan Sainan added the enhancement New feature or request label Aug 4, 2023
@Sainan Sainan linked a pull request Aug 18, 2023 that will close this issue
@Sainan Sainan closed this as completed Aug 25, 2023
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 a pull request may close this issue.

1 participant