Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 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