We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Dict.filter (\k _ -> k /= foo)
Dict.remove foo
What the rule should do: Dict.filter (\k _ -> k /= foo) => Dict.remove foo
What problems does it solve: Change from O(n) to O(log n) complexity, and reduce memory usage.
O(n)
O(log n)
Should this be part of the Simplify rule or should it be a new rule? Part of Simplify
Simplify
I am looking for:
The text was updated successfully, but these errors were encountered:
also
Set.filter (\k -> k /= needle) set --> Set.remove needle set
would be nice if a fuzz test can verify these always works with NaN
NaN
Sorry, something went wrong.
No branches or pull requests
What the rule should do:
Dict.filter (\k _ -> k /= foo)
=>Dict.remove foo
What problems does it solve:
Change from
O(n)
toO(log n)
complexity, and reduce memory usage.Should this be part of the Simplify rule or should it be a new rule?
Part of
Simplify
I am looking for:
The text was updated successfully, but these errors were encountered: