We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e638ca commit 1fccf0fCopy full SHA for 1fccf0f
examples/accumulate2
@@ -0,0 +1,8 @@
1
+(reduce2 + [1 2 3 4]) # -> 10
2
+(accumulate2 + [1 2 3 4]) # -> @[1 3 6 10]
3
+
4
+(reduce2 + []) # -> nil
5
+(accumulate2 + []) # -> @[]
6
7
+(reduce2 max [1 4 2 3 9 5]) # -> 9
8
+(accumulate2 max [1 4 2 3 9 5]) # -> @[1 4 4 4 9 9]
0 commit comments