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
Nub
I don't think it works on non-consecutive duplicates.
The text was updated successfully, but these errors were encountered:
Here's efficient and correct Nub implementation (from servant-swagger):
servant-swagger
-- | Remove duplicates from a type-level list. type family Nub xs where Nub '[] = '[] Nub (x ': xs) = x ': Nub (Remove x xs) -- | Remove element from a type-level list. type family Remove x xs where Remove x '[] = '[] Remove x (x ': ys) = Remove x ys Remove x (y ': ys) = y ': Remove x ys
Sorry, something went wrong.
Fix Nub
5beffe5
Fixes #27
No branches or pull requests
I don't think it works on non-consecutive duplicates.
The text was updated successfully, but these errors were encountered: