RosettaCodeData/Task/Pangram-checker/Mathematica/pangram-checker-2.math

6 lines
238 B
Text
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
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]]]]