Created
February 18, 2023 01:03
-
-
Save aavogt/e88abe27d7c9a36a0e5e5b7a5d40d531 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE TypeFamilies #-} | |
type family Remove v xs where | |
Remove x (x ': xs) = Remove x xs | |
Remove x (y ': xs) = y ': Remove x xs | |
Remove x '[] = '[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment