instructors = [{name: 'tim', hometown: 'camden, ar', mood: 'excited'}, {name: 'meryl', hometown: 'new orleans, la'}, {name: 'lindsey', hometwon: 'michigan'}]
def get_names(people)
# DON'T USE EACH
# map or collect
# just return the names
end
def get_people_from_a_place(people, place)
# DON'T USE EACH
# select
# return a list of people from place
end
def get_person_by_name(people, name)
# DON'T USE EACH
# find or detect
# return the first person hash by name
end
def get_tally_of_moods(people)
# DON'T USE EACH
# return a hash whose keys are the moods and whose values are the number of times that mood appears
end
learn-co-students / advanced-hashes-hashketball-001-prework-web Goto Github PK
View Code? Open in Web Editor NEWLicense: Other