Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 19th, 2018
105
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
def sum(l: List[Int]) = {
def s(i: List[Int], acc: Int): Int = i match {
case x::xs => s(xs, acc + x)
case Nil => acc
}
s(l, 0)
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
snippets [by happy.enderman#0]
JavaScript | 1 min ago | 1.15 KB
ДЗ Консольное меню
C# | 18 min ago | 2.04 KB
app_killer.sh
Bash | 19 min ago | 0.52 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 24 min ago | 0.38 KB
Regla de 3 en JavaScript
JavaScript | 27 min ago | 0.38 KB
Regla de 3 en Python
Python | 29 min ago | 0.34 KB
Untitled
Python | 39 min ago | 12.83 KB
bash_deleter.sh
Bash | 39 min ago | 0.14 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!