Last active
November 23, 2019 22:42
-
-
Save GrantJEmerson/8a12a554186f57eca69a98048a278186 to your computer and use it in GitHub Desktop.
Zip-A-Dee-Doo-Dah Zip-An-Array - SwiftMoji Entry #2
This file contains 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
typealias Meal = (drink: String, food: String) | |
let drinks = ["π₯", "βοΈ", "π₯€", "πΊ", "π·", "πΉ"] | |
let foods = ["πͺ", "π₯π³", "ππ", "π₯", "π", "π₯"] | |
let meals = Array(zip(drinks, foods)) as [Meal] | |
let dinner = meals[2] | |
print("Tonight, we will have \(dinner.drink) and \(dinner.food) for dinner.") | |
// Tonight, we will have π₯€ and ππ for dinner. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment