explaining that maps are functions