Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed typos and re-tagged "Intro to Reduce"

  • Loading branch information...
commit 723b2afe6e24a9399e5f2600b31e2c025511ed55 1 parent 0705010
@dbyrne dbyrne authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/foreclojure/data_set.clj
View
4 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]))"]})
Please sign in to comment.
Something went wrong with that request. Please try again.