Permalink
Browse files

Fixed typos and re-tagged "Intro to Reduce"

  • Loading branch information...
1 parent 0705010 commit 723b2afe6e24a9399e5f2600b31e2c025511ed55 @dbyrne dbyrne committed Apr 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/foreclojure/data_set.clj
@@ -664,8 +664,8 @@
{:_id 64
:title "Intro to reduce"
:times-solved 0
- :description "<a href='http://clojuredocs.org/clojure_core/clojure.core/reduce'>Reduce</a> takes a 2 argument fuction and and an optional starting value. It then applies the function to the first 2 items in the sequence (or the starting value and the first element of the sequence). In the next iteration the function will be called on the previous return value and the next item from the sequence, thus reducing the entire collection to one value. Don't worry, it's not really that complicated."
- :tags ["easy" "core-functions" "reduce"]
+ :description "<a href='http://clojuredocs.org/clojure_core/clojure.core/reduce'>Reduce</a> takes a 2 argument function and an optional starting value. It then applies the function to the first 2 items in the sequence (or the starting value and the first element of the sequence). In the next iteration the function will be called on the previous return value and the next item from the sequence, thus reducing the entire collection to one value. Don't worry, it's not as complicated as it sounds."
+ :tags ["elementary" "seqs"]
:tests ["(= 15 (reduce __ [1 2 3 4 5]))"
"(= 0 (reduce __ []))"
"(= 6 (reduce __ 1 [2 3]))"]})

0 comments on commit 723b2af

Please sign in to comment.