Skip to content

Commit

Permalink
Fixed typos and re-tagged "Intro to Reduce"
Browse files Browse the repository at this point in the history
  • Loading branch information
dbyrne committed Apr 28, 2011
1 parent 0705010 commit 723b2af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/foreclojure/data_set.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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]))"]})
Expand Down

0 comments on commit 723b2af

Please sign in to comment.