Pangram checker: Difference between revisions
Content added Content deleted
(Add Quackery) |
Alextretyak (talk | contribs) (Added 11l) |
||
Line 17: | Line 17: | ||
:* [https://rosettacode.org/wiki/Determine_if_a_string_has_all_unique_characters determine if a string has all unique characters] |
:* [https://rosettacode.org/wiki/Determine_if_a_string_has_all_unique_characters determine if a string has all unique characters] |
||
<br><br> |
<br><br> |
||
=={{header|11l}}== |
|||
<lang 11l>F is_pangram(sentence) |
|||
R Set(sentence.lowercase().filter(c -> c.is_alpha())).len == 26 |
|||
L(sentence) [‘The quick brown fox jumps over the lazy dog.’, |
|||
‘The quick brown fox jumped over the lazy dog.’] |
|||
print(‘'#.' is #.a pangram’.format(sentence, ‘not ’ * !is_pangram(sentence)))</lang> |
|||
{{out}} |
|||
<pre> |
|||
'The quick brown fox jumps over the lazy dog.' is a pangram |
|||
'The quick brown fox jumped over the lazy dog.' is not a pangram |
|||
</pre> |
|||
=={{header|360 Assembly}}== |
=={{header|360 Assembly}}== |