re: Daily Challenge #3 - Vowel Counter VIEW POST

FULL DISCUSSION
 

Rubeh

require 'set'
vwls = %w"a e i o u".to_set

def sm_vwls(strng)
  strng.chars.sum { |c| vwls.include?(c) }
end
code of conduct - report abuse