Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Pangram-checker/Ceylon/pangram-checker.ceylon
Normal file
17
Task/Pangram-checker/Ceylon/pangram-checker.ceylon
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
shared void run() {
|
||||
|
||||
function pangram(String sentence) =>
|
||||
let(alphabet = set('a'..'z'),
|
||||
letters = set(sentence.lowercased.filter(alphabet.contains)))
|
||||
letters == alphabet;
|
||||
|
||||
value sentences = [
|
||||
"The quick brown fox jumps over the lazy dog",
|
||||
"""Watch "Jeopardy!", Alex Trebek's fun TV quiz game.""",
|
||||
"Pack my box with five dozen liquor jugs.",
|
||||
"blah blah blah"
|
||||
];
|
||||
for(sentence in sentences) {
|
||||
print("\"``sentence``\" is a pangram? ``pangram(sentence)``");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue