You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def all_winter_holiday_supplies(holiday_hash)
holiday_supplies[:winter].map do |holiday, supplies|
supplies
end.flatten
end
def all_supplies_in_holidays(holiday_hash)
holiday_supplies.each do |season, holidays|
puts "#{season.capitalize}:"
holidays.each do |holiday, supplies|
puts" #{holiday.to_s.split('_').map {|w| w.capitalize }.join(' ') }: #{supplies.join(", ")}"
end
end
end
The text was updated successfully, but these errors were encountered:
def all_winter_holiday_supplies(holiday_hash)
holiday_supplies[:winter].map do |holiday, supplies|
supplies
end.flatten
end
def all_supplies_in_holidays(holiday_hash)
holiday_supplies.each do |season, holidays|
puts "#{season.capitalize}:"
holidays.each do |holiday, supplies|
puts" #{holiday.to_s.split('_').map {|w| w.capitalize }.join(' ') }: #{supplies.join(", ")}"
end
end
end
The text was updated successfully, but these errors were encountered: