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

Add filter_map, dedup and some variants to the stdlib #2120

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yannham
Copy link
Member

@yannham yannham commented Dec 4, 2024

Closes #1958. Adds filter_map, dedup, as well as two variants of dedup that avoid the quadratic behavior of the purely equality-based vanilla version, sort_dedup and hash_dedup.

@yannham yannham requested a review from jneem December 4, 2024 23:08
@yannham yannham force-pushed the stdlib/dedup-and-filter-map branch from 554ffc9 to 800a949 Compare December 5, 2024 09:43
Copy link
Contributor

github-actions bot commented Dec 5, 2024

@yannham
Copy link
Member Author

yannham commented Dec 11, 2024

It seems we now blow the stack on Windows (1MB), and it's can't be really tweaked from tests - I tried to wrap all main tests as a scoped thread with larger stack but it didn't work so I suspect this is the separate LSP command. This is annoying and also probably means the standalone LSP binary is also overflowing the stack on Windows.

@yannham yannham force-pushed the stdlib/dedup-and-filter-map branch from 5b1c106 to d8e18b4 Compare December 11, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some utilities in std.array: remove_duplicates and filter_map
1 participant