Skip to content

Instantly share code, notes, and snippets.

@michaelevensen
Created January 3, 2017 18:18
Show Gist options
  • Save michaelevensen/0a132068ff7b586d58ad6fa58d943939 to your computer and use it in GitHub Desktop.
Save michaelevensen/0a132068ff7b586d58ad6fa58d943939 to your computer and use it in GitHub Desktop.
Simple Map example.
// 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