git.iko.soy
/
streamly
readme
files
commits
refs
on
master
help
sign in
fix example
2d3ccad
Harendra Kumar
9 years ago
examples/map-reduce.hs
+3
−4
compare with master
unified
split
@@ -1,7 +1,6 @@
1
−
import
Data.List (sum)
2
import
Asyncly
1
import
Asyncly
3
−
import
Asyncly.Prelude
2
+
import
Asyncly.Prelude
as
A
4
3
5
main =
do
4
main =
do
6
−
xs
<-
toList
$ serially $ forEachWith (<|) [
1
..
100
] $ \x -> return (x * x)
5
+
s
<-
A
.sum
$ serially $ forEachWith (<|) [
1
..
100
] $ \x -> return (x * x)
7
−
print
. sum $ xs
6
+
print
s
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list