Created
June 4, 2014 19:39
-
-
Save ifonefox/fa3569ee846b061ec262 to your computer and use it in GitHub Desktop.
This file contains 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
#without playground's sidbar's output: | |
๐ = "๐ถ๐บ๐ฑ๐ญ๐น๐ฐ๐ธ๐ฏ๐จ๐ป๐ท๐ฝ๐ฎ๐๐ต๐๐ด๐๐๐ผ๐ง๐ฆ๐ค๐ฅ๐ฃ๐๐๐ข๐๐๐๐๐๐๐๐ ๐๐ฌ๐ณ๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐๐ฒ๐ก๐๐ซ๐ช๐๐๐ฉ" | |
๐ข = [] | |
for ๐ in ๐.each_char | |
๐ข.push(๐+๐) | |
end | |
#With playground's sidbar's output: | |
๐ = "๐ถ๐บ๐ฑ๐ญ๐น๐ฐ๐ธ๐ฏ๐จ๐ป๐ท๐ฝ๐ฎ๐๐ต๐๐ด๐๐๐ผ๐ง๐ฆ๐ค๐ฅ๐ฃ๐๐๐ข๐๐๐๐๐๐๐๐ ๐๐ฌ๐ณ๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐๐ฒ๐ก๐๐ซ๐ช๐๐๐ฉ" | |
p ๐ | |
๐ข = [] | |
puts "#{๐ข.size} elements" | |
for ๐ in ๐.each_char | |
๐ข.push(๐+๐) | |
end | |
p ๐ข |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment