Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 17th, 2018
109
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
var arr = [2, 3, 4, 5]
func square(_ array: [Int]) -> [Int]{
var result: [Int] = []
for element in array {
result.append(element * element)
}
return result
}
square(arr) //[4, 9, 16, 25]
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 8 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 19 min ago | 0.38 KB
claudio barreintos - GSM
CSS | 23 min ago | 0.36 KB
How Can You Get a 500USD No Deposit Bonus and...
PHP | 1 hour ago | 2.76 KB
Untitled
Python | 1 hour ago | 0.94 KB
Untitled
JSON | 1 hour ago | 4.07 KB
Untitled
JSON | 1 hour ago | 4.84 KB
PU Prime Forex Live Trading Contest The Great...
PHP | 2 hours ago | 2.79 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!