Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Apr 24th, 2018
87
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
def dup(toto)
a = []
toto.each do |b|
a << b
end
a
end
dup([1,2,3])
=======
def dup(toto)
a = toto.inject([]) do |sum, b|
sum << b
end
end
dup([1,2,3])
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 17 min ago | 0.38 KB
2024-04-25_stats.json
JSON | 56 min ago | 3.61 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 57 min ago | 0.39 KB
2024-04-25_stats.json
JSON | 59 min ago | 3.60 KB
2024-04-25_stats.json
JSON | 60 min ago | 3.57 KB
Weight Method - CS220
Java | 1 hour ago | 3.66 KB
🔥 Cashapp Free Amazon Giftcard 🔥
GetText | 2 hours ago | 0.32 KB
configMod
Lua | 3 hours ago | 2.51 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!