Last active
September 10, 2016 18:49
-
-
Save suraphanL/29db525a9ad807abeb99c18b66432ad0 to your computer and use it in GitHub Desktop.
Squared Of Array of Int
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 fibs = [0, 1, 2, 3, 4] | |
var squared: [Int] = [] | |
for fib in fibs { | |
squared.append(fib * fib) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment