Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 14th, 2018
90
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Rails
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
class
Welp
def
initialize
(
vals
)
@vals
= vals
end
def
compute!
@vals
.
map
{
|
v
|
v.
to_i
}
.
reduce
(
0
)
{
|
s, v
|
s
+
v
}
end
end
puts
"The ___ is: #{Welp.new(ARGV).compute!}"
Add Comment
Please,
Sign In
to add comment
Public Pastes
[DOORS] Super entity spawner
Lua | 7 min ago | 159.14 KB
Calculo_Figuras
Python | 14 min ago | 5.24 KB
esportal error
Objective C | 18 min ago | 4.93 KB
Камрейч
JavaScript | 27 min ago | 0.61 KB
Untitled
FreeBasic | 30 min ago | 3.27 KB
train - startup.lua
Lua | 47 min ago | 0.19 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 52 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 54 min ago | 0.39 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!