Clojure Brain Teasers: Suggestiong for improvement (page 8)

@alexmiller

I love (and need) this book, so thank you for great work!

I have a comment on Puzzle 2. The discussion says “BigInt values are printed with a trailing ‘N’ suffix (like the second answer here)”, but the numbers, with or without ‘N’ are not actually displayed in the evaluation results. It would be very useful, especially when reading away from a computer if the discussion contained these evaluations:

user=> bignum
9223372036854775807
user=> (+’ bignum 1)
9223372036854775808N

and maybe also this:

user=> (unchecked-add bignum 1)
-9223372036854775808

Good ideas! Added, thanks.