simple-exercises/ruby-exercises/easy-4.rb
# Remove Letter 'A'
# ------------------------------------------------------------------------------
# Given a list of words, remove all the occurrences of the letter 'a' in those
# words.
Remove Letter 'A'
Given a list of words, remove all the occurrences of the letter 'a' in those
words.
Remove Letter ' A ' Given a list of words remove all the occurrences of the letter ' a ' in those words .
def remove_letter_a(words)
  new_words = []
  words.each do |word|
    without_a = ""
    word.each_char do |c|
      if c != 'a'
        without_a << c
      end
    end
    new_words << without_a
  end
  new_words
end
def remove_letter_a ( words ) new_words = [ ] words . each do | word | without_a = "" word . each_char do | c | if c != 'a' without_a << c end end new_words << without_a end new_words end
Remove Letter 'A'
Given a list of words, remove all the occurrences of the letter 'a' in those
words.
Remove Letter ' A ' Given a list of words remove all the occurrences of the letter ' a ' in those words .
words
<not_specific>