Programming Clojure, Third Edition: game arguments swapped (page 254)

The two arguments of game should swap positions. In the text:

(game random-player "hello")

Should be:

(game "hello" random-player)

Since all the examples later call the game function with the same swapped arguments, I’d suggest change the function definition :).

1 Like