fork download
  1. def pangram?(sentence)
  2. unused_letters = ('a'..'z').to_a - sentence.downcase.chars.to_a
  3. unused_letters.empty?
  4. end
  5.  
  6. p pangram?('this is a sentence') # ==> false
  7. p pangram?('The quick brown fox jumps over the lazy dog.') # ==> true
Success #stdin #stdout 0s 4760KB
stdin
Standard input is empty
stdout
false
true