RosettaCodeData/Task/Pangram-checker/Mathematica/pangram-checker-2.math
2015-11-18 06:14:39 +00:00

5 lines
238 B
Text

pangramQ[msg_] :=
Function[If[# === {}, Print["The string is a pangram!"],
Print["The string is not a pangram. It's missing the letters " <>
ToString[#]]]][
Complement[CharacterRange["a", "z"], Characters[ToLowerCase[msg]]]]