-
-
Save Li-Bot/59edd4689bb4216916252cc9c8f8361e 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
// Swift | |
let fahrenheit = fahrenheits.flatMap({ (fahrenheit) -> [Double] in | |
return fahrenheit | |
}) | |
// For-in loop | |
var fahrenheit = [Double]() | |
for lFahrenheit in fahrenheits { | |
fahrenheit.append(contentsOf: lFahrenheit) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment