Skip to content
This repository
Browse code

add reduce-example to clojure snippets

  • Loading branch information...
commit c9f33302f869549d6ec1dd6fd334d7ae5b4ceeb6 1 parent 5300eed
Sam Aaron samaaron authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. +6 0 etc/snippets/clojure-mode/reduce-example
6 etc/snippets/clojure-mode/reduce-example
... ... @@ -0,0 +1,6 @@
  1 +#contributor : Sam Aaron <samaaron@gmail.com>
  2 +# name: Example reduce
  3 +# key: reduce.
  4 +# group: examples
  5 +# --
  6 +(reduce (fn [res el] (+ res el)) 0 [1 2 3 4 5])$0

0 comments on commit c9f3330

Please sign in to comment.
Something went wrong with that request. Please try again.