Skip to content

Instantly share code, notes, and snippets.

@jjlumagbas
Created October 19, 2016 03:35
Show Gist options
  • Save jjlumagbas/783a282f6a60d0a2446a538a3d26b07d to your computer and use it in GitHub Desktop.
Save jjlumagbas/783a282f6a60d0a2446a538a3d26b07d to your computer and use it in GitHub Desktop.
module
import qualified Data.List as L hiding (nub)
numUniques :: (Eq a) => [a] -> Int
numUniques = length . nub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment