Skip to content

Conversation

@tgrushka
Copy link

… to only actually append the item to the array if the value does not yet exist in the array.

I had a go at #4. Is this OK? Wrote a unit test for it and cleaned up some clippy suggestions.

One shortcoming: maybe it should possibly throw an error instead if the item is not unique so the user can decide what to do?

Ran just test and just ci to test/lint.

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.

1 participant