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
difference
Example:
difference [2, 1, 2] [2, 2, 3] == [1]
https://pursuit.purescript.org/packages/purescript-arrays/7.3.0/docs/Data.Array#v:difference
Delete the first occurrence of each element in the second array from the first array, creating a new array.
I read the description as follows:
This would be a clearer description of what this function does:
For each element in the second array, find an occurrence from left to right in the first array and remove it when found.
I think the word "first" should be avoided, because in the example above then second 2 from [2,2,3] is matched against the second 2 from [2,1,2].
2
[2,2,3]
[2,1,2]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example:
https://pursuit.purescript.org/packages/purescript-arrays/7.3.0/docs/Data.Array#v:difference
I read the description as follows:
This would be a clearer description of what this function does:
I think the word "first" should be avoided, because in the example above then second
2
from[2,2,3]
is matched against the second2
from[2,1,2]
.The text was updated successfully, but these errors were encountered: