Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 58 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. # def acronymize(sentence)
  2. #   string = ""
  3. #   sentence.split(" ").each do |word|
  4. #     string += word[0].upcase
  5. #   end
  6. #   return string
  7. # end
  8.  
  9. # redo using map
  10.  
  11. def acronymize(sentence)
  12.     sentence.split.map { |word| word[0].upcase }.join
  13. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top