# Errata for Functional Programming in Kotlin by Tutorials 1st Edition

**URL:** <https://forums.kodeco.com/t/errata-for-functional-programming-in-kotlin-by-tutorials-1st-edition/170375>\
**Category:** Functional Programming in Kotlin by Tutorials\
**Created:** [May 3, 2022, 11:48pm UTC](https://forums.kodeco.com/t/errata-for-functional-programming-in-kotlin-by-tutorials-1st-edition/170375 "2022-05-03T23:48:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jellodiil](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jellodiil/32/109742_2.png) [@jellodiil](https://forums.kodeco.com/u/jellodiil)\
**Post date:** [May 3, 2022, 11:48pm UTC](https://forums.kodeco.com/t/errata-for-functional-programming-in-kotlin-by-tutorials-1st-edition/170375/1 "2022-05-03T23:48:25Z")

</div>

Creating this topic to catch any typos and bugs in the 1st Edition of Functional Programming in Kotlin by Tutorials.

---

<div class="post-metadata">

**Author:** ![jellodiil](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jellodiil/32/109742_2.png) [@jellodiil](https://forums.kodeco.com/u/jellodiil)\
**Post date:** [May 3, 2022, 11:48pm UTC](https://forums.kodeco.com/t/errata-for-functional-programming-in-kotlin-by-tutorials-1st-edition/170375/2 "2022-05-03T23:48:47Z")

</div>



---

<div class="post-metadata">

**Author:** ![thassanauny](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/thassanauny/32/102075_2.png) [@thassanauny](https://forums.kodeco.com/u/thassanauny)\
**Post date:** [October 10, 2022, 9:13pm UTC](https://forums.kodeco.com/t/errata-for-functional-programming-in-kotlin-by-tutorials-1st-edition/170375/3 "2022-10-10T21:13:07Z")

</div>

In the 2nd chapter following associativity example is wrong:

```auto
twice(triple(quadruple(x))) == quadruple(twice(triple(x)))

```

right way to think about it is:  
`twice compose ((triple compose quadruple)(x)) == ((twice compose triple) compose quadruple)(x)`

---

<div class="post-metadata">

**Author:** ![vgonda](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/vgonda/32/102490_2.png) [@vgonda](https://forums.kodeco.com/u/vgonda)\
**Post date:** [October 13, 2022, 12:45am UTC](https://forums.kodeco.com/t/errata-for-functional-programming-in-kotlin-by-tutorials-1st-edition/170375/4 "2022-10-13T00:45:48Z")

</div>

Thanks for pointing that out! We’ll take note of that for the next edition.
