OUTPUTS = {
1 => ->(i) { i.odd? ? "odd" : "even" },
2 => ->(_) { "trying" },
3 => ->(_) { "other" }
}.freeze
def chaos(x)
return puts "negative" unless x.positive?
[1, 2, 3].each do |i|
puts OUTPUTS[i]&.call(i) || "other"
end
end
end
My own phone changed every couple of months and it feld sooo good to have the changing tiles with information, pictures etc. I was a huge fan of the concept.