Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'develop' of https://github.com/dbyrne/4clojure into dev…

…elop
  • Loading branch information...
commit 76117ef47e97c18b88e3692a2b19ca0726de27c2 2 parents 31c1eab + 723b2af
@gigasquid gigasquid 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.