Programming Clojure, Third Edition: (swap {:page 111} '[into reduce])

Programming Clojure, Third Edition (page 111)

Backward description of when to use reduce and into, it should be:

  • Reduce: when the output is a single computed value
  • Into: when the output is a collection
4 Likes

Yep, looks like those got swapped, good catch!

3 Likes