Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add reduce-example to clojure snippets

  • Loading branch information...
commit c9f33302f869549d6ec1dd6fd334d7ae5b4ceeb6 1 parent 5300eed
@samaaron samaaron authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 etc/snippets/clojure-mode/reduce-example
View
6 etc/snippets/clojure-mode/reduce-example
@@ -0,0 +1,6 @@
+#contributor : Sam Aaron <samaaron@gmail.com>
+# name: Example reduce
+# key: reduce.
+# group: examples
+# --
+(reduce (fn [res el] (+ res el)) 0 [1 2 3 4 5])$0
Please sign in to comment.
Something went wrong with that request. Please try again.