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

**URL:** <https://forum.devtalk.com/t/programming-clojure-third-edition-swap-page-111-into-reduce/1368>\
**Category:** PragProg Customers\
**Tags:** book-programming-clojure-third-edition, errata\
**Created:** [23 August 2020 21:12 UTC](https://forum.devtalk.com/t/programming-clojure-third-edition-swap-page-111-into-reduce/1368 "2020-08-23T21:12:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgomo3](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jgomo3/32/1005_2.png) [@jgomo3](https://forum.devtalk.com/u/jgomo3)\
**Post date:** [23 August 2020 21:12 UTC](https://forum.devtalk.com/t/programming-clojure-third-edition-swap-page-111-into-reduce/1368/1 "2020-08-23T21:12:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![alexmiller](https://forum.devtalk.com/user_avatar/forum.devtalk.com/alexmiller/32/1006_2.png) [@alexmiller](https://forum.devtalk.com/u/alexmiller)\
**Post date:** [24 August 2020 15:38 UTC](https://forum.devtalk.com/t/programming-clojure-third-edition-swap-page-111-into-reduce/1368/2 "2020-08-24T15:38:17Z")

</div>

Yep, looks like those got swapped, good catch!
