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

stdlib: Add list functions #1648

Merged
merged 6 commits into from
Sep 23, 2024
Merged

stdlib: Add list functions #1648

merged 6 commits into from
Sep 23, 2024

Conversation

V-FEXrt
Copy link
Contributor

@V-FEXrt V-FEXrt commented Sep 19, 2024

I'm working on fixes to breakages in v44.0.0 and it felt better to split things up instead of trying to make one larger disparate PR.

This PR adds list intersect and subset both of which are needed for the upcoming fixes. Care was taken to ensure they didn't run N^2. They roughly run in 2*nlogn + n where n = max(lhs.len, rhs.len) though I am assuming sortBy is nlogn which I've not verified

share/wake/lib/core/list.wake Outdated Show resolved Hide resolved
share/wake/lib/core/list.wake Outdated Show resolved Hide resolved
share/wake/lib/core/list.wake Outdated Show resolved Hide resolved
Copy link
Contributor

@colinschmidt colinschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

share/wake/lib/core/list.wake Outdated Show resolved Hide resolved
@V-FEXrt V-FEXrt merged commit 9205a3a into master Sep 23, 2024
11 checks passed
@V-FEXrt V-FEXrt deleted the stdlib-list-fns branch September 23, 2024 21:31
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

Successfully merging this pull request may close these issues.

3 participants