Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
ocaml core List.sum
bvdeenen
May 4th, 2019
10,071
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
28 min ago | 0.43 KB
+12,000$ in 2 days
CSS | 29 min ago | 0.72 KB
Crypto admin access
29 min ago | 0.43 KB
Free Crypto Method
CSS | 29 min ago | 0.72 KB
CC:T GPS Beacon
4 hours ago | 0.49 KB
R4 Moon SPI Screen With Wifi
Arduino | 7 hours ago | 13.55 KB
Art school
1 day ago | 1.06 KB
Untitled
1 day ago | 6.00 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!