iOS Functions in Swift Adding Power to Functions Returning Complex Values

i do not need an answer just a hint please.

the directions are really unclear can someone explain this please.

functions.swift
// Enter your code below
func coordinates()

1 Answer

Brandon Mahoney
Brandon Mahoney
iOS Development with Swift Techdegree Graduate 30,144 Points

So a tuple is a group of multiple values which form a single compound value such as longitude/latitude. So for this exercise you are returning two doubles which will be the longitude and latitude of the location of the parameter string. In the body of the function you need to make a switch statement that switches on the 3 given places and returns their longitude and latitude. I labeled where the external and local names go in the code below.

func coordinates(externalNameGoesHere localNameGoesHere: String) -> (Double, Double) {

}