" For example, the curried version of withPrintWriter looks like this: def withPrintWriter(file: File)(operation: PrintWriter => Unit) { val writer = new PrintWriter(f) try { operation(writer) } finally { writer.close() } }"
After one paragraph, in page 160, we see
Here is an implementation of withPrintWriter that supports this:
Aren't these definitions exactly the same, except for the substitution of "op" for "operator" ? I think the latter could be removed and the flow would be intact.