Created
August 23, 2020 06:17
-
-
Save charlieInDen/161f34ba15080dc358ee45909dcc1fd8 to your computer and use it in GitHub Desktop.
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
let cast = ["Vivien", "Marlon", "Kim", "Karl"] | |
let lowercaseNames = cast.map { $0.lowercased() } | |
// 'lowercaseNames' == ["vivien", "marlon", "kim", "karl"] | |
let letterCounts = cast.map { $0.count } | |
// 'letterCounts' == [6, 6, 3, 4] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment