Skip to content

Conversation

@vitahall
Copy link

Order is significant in SPF, and converting the list to a set and back to remove duplicates also has the effect of shuffling the list.

This is a naive implementation but it has the virtue of being obvious, and for this purpose it's fast enough.

Order is significant in SPF, and converting the list to a set and back
to remove duplicates also has the effect of shuffling the list. We now
remove duplicates while preserving the order of the remaining elements.
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