Skip to content

Instantly share code, notes, and snippets.

@lesliev
Created May 14, 2018 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lesliev/2c800c2ec31cf7f4c72ebac6fb20e784 to your computer and use it in GitHub Desktop.
Save lesliev/2c800c2ec31cf7f4c72ebac6fb20e784 to your computer and use it in GitHub Desktop.
All the heyos
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