ruby-uebungen/Assignment_025/solution
Thomas Smits 25d5ac7ffd Initial commit 2023-05-23 09:19:31 +02:00
..
readme.md Initial commit 2023-05-23 09:19:31 +02:00

readme.md

Lösung: Hashes





























































```ruby worte = %w{ Bier Schnaps Bier Vodka Rum Baileys Rum Bier Vodka Bier Hugo }

def de_dupe(input) hash = {} input.each { |e| hash[e] = true } hash.keys.sort end

puts de_dupe(worte)