Created
May 14, 2018 00:04
-
-
Save lesliev/2c800c2ec31cf7f4c72ebac6fb20e784 to your computer and use it in GitHub Desktop.
All the heyos
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
heyo = 'heyo'.scan(/./) | |
heyo.each do |c1| | |
(heyo-[c1]).each do |c2| | |
(heyo-[c1, c2]).each do |c3| | |
(heyo-[c1, c2, c3]).each do |c4| | |
puts "#{c1} #{c2} #{c3} #{c4}" | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment