The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

joedoe (1) [Avatar] Offline
#1
Just want to report a little typo in listing at the end of page 258 (Clojure in Action, 2nd Edition, Version 4, Chapter 10.1.1)

(defn as-string [date]
(let [y (year-from date)
m (pad (month-from date))
d (pad (day-from date))]
(str-join "-" [y m d])))

Call to method join of class String should be str/join.Its right in the listing on the top of the same page, but wrong in this listing of as.string using the pad function.
amitrathore (132) [Avatar] Offline
#2
Re: CiA, 2nd V04, Ch.10.1.1: Typo in listing so program won't compile
Fixed, thanks!