Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Pangram-checker/Tcl/pangram-checker.tcl
Normal file
8
Task/Pangram-checker/Tcl/pangram-checker.tcl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
proc pangram? {sentence} {
|
||||
set letters [regexp -all -inline {[a-z]} [string tolower $sentence]]
|
||||
expr {
|
||||
[llength [lsort -unique $letters]] == 26
|
||||
}
|
||||
}
|
||||
puts [pangram? "This is a sentence"]; # ==> false
|
||||
puts [pangram? "The quick brown fox jumps over the lazy dog."]; # ==> true
|
||||
Loading…
Add table
Add a link
Reference in a new issue