Created
March 17, 2015 16:37
-
-
Save vastus/4f44f6e6bebd7edee33c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| simple = -> (s) { puts s.chars.join(" ").upcase, s.chars[1..-1].join("\n").upcase } | |
| overcomplicate = -> (s) { [[s.chars.map{|c| c + ' '}.join], s.chars[1..-1]].each { |s| puts s.join("\n").upcase } } | |
| simple["sire"] | |
| overcomplicate["sire"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment