Pangram checker: Difference between revisions
Content deleted Content added
Simple9371 (talk | contribs) m →{{header|Batch File}}: Removed a 'call' command |
m Added the Sidef language |
||
Line 1,696:
TRUE
FALSE
</pre>
=={{header|Sidef}}==
{{trans|Perl 6}}
<lang ruby>define Eng = ('a' .. 'z');
define Cyr = %w(а б в г д е ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я ё);
define Hex = ('a' .. 'f');
func pangram(str, alpha=Eng) {
var lstr = str.lc;
alpha.all {|c| lstr.contains(c) };
}
say pangram("The quick brown fox jumps over the lazy dog.");
say pangram("My dog has fleas.");
say pangram("My dog has fleas.", Hex);
say pangram("My dog backs fleas.", Hex);
say pangram("Съешь же ещё этих мягких французских булок, да выпей чаю", Cyr);</lang>
{{out}}
<pre>
true
false
false
true
true
</pre>
|