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

Maintain ordering in flattened SPF record #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant