Taken from Exercism
Your task is to figure out if a sentence is a pangram.
A pangram is a sentence using every letter of the alphabet at least once. It is case insensitive, so it doesn’t matter if a letter is lower-case (e.g.
k
) or upper-case (e.g.K
).For this exercise we only use the basic letters used in the English alphabet:
a
toz
.
Solution
This is the answer I came up with:
The tests checked for underscores, numbers, and punctuation but the implementation covered all edge cases since filtering against a Set is discriminative.