Created
October 24, 2020 19:00
-
-
Save bkyrlach/6496b69d36fbce28a43e58038349a570 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
module Pangram where | |
import Data.Set (Set) | |
import Data.Set as Set | |
import Data.Char (toLower, isLetter) | |
import Data.List as List | |
isPangram :: [Char] -> Bool | |
isPangram s = 26 == (Set.size $ Set.fromList $ fmap toLower (List.filter isLetter s)) |
Author
bkyrlach
commented
Oct 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment