Errata for Functional Programming in Kotlin by Tutorials 1st Edition

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

In the 2nd chapter following associativity example is wrong:

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)

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

1 Like