June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
7
Task/Pangram-checker/Maple/pangram-checker-1.maple
Normal file
7
Task/Pangram-checker/Maple/pangram-checker-1.maple
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#Used built-in StringTools package
|
||||
is_pangram := proc(str)
|
||||
local present := StringTools:-LowerCase~(select(StringTools:-HasAlpha, StringTools:-Explode(str)));
|
||||
local alphabets := {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
|
||||
present := convert(present, set);
|
||||
return evalb(present = alphabets);
|
||||
end proc;
|
||||
3
Task/Pangram-checker/Maple/pangram-checker-2.maple
Normal file
3
Task/Pangram-checker/Maple/pangram-checker-2.maple
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
is_pangram("The quick brown fox jumps over the lazy dog.");
|
||||
is_pangram("The 2 QUIck brown foxes jumped over the lazy DOG!!");
|
||||
is_pangram(""The quick brown fox jumps over the lay dog.");
|
||||
Loading…
Add table
Add a link
Reference in a new issue