Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
ocaml core List.sum
bvdeenen
May 4th, 2019
10,224
0
Never
2
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
OCaml
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
#
require
"core"
;;
open
Core
;;
let
sum a
=
List
.
sum
(
module
Int
)
a
~f
:
ident
in
List
.
range
0
100
|>
List
.
map
~f
:
(
fun
x
->
x
*
x
)
|>
sum
;;
-
:
int
=
328350
Advertisement
Comments
User was banned
User was banned
Add Comment
Please,
Sign In
to add comment
Public Pastes
Documents
15 min ago | 0.43 KB
Free Crypto Method
CSS | 15 min ago | 0.72 KB
+12,000$ in 2 days
CSS | 16 min ago | 0.72 KB
Crypto admin access
16 min ago | 0.43 KB
Free $$$ Mehtod
CSS | 16 min ago | 0.71 KB
Free money docs
CSS | 16 min ago | 0.71 KB
2 Day in +12.000$
CSS | 16 min ago | 0.71 KB
Instant Profits with Crypto
CSS | 17 min ago | 0.71 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!