Created
January 3, 2017 18:18
-
-
Save michaelevensen/0a132068ff7b586d58ad6fa58d943939 to your computer and use it in GitHub Desktop.
Simple Map example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Charger locations array of touples (Double, Double) | |
let chargeLocations = stations.map { ($0.location.latitude, $0.location.longitude) } | |
// Returns an array of touples exctracted from the location value of each array element. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment