Reply to comment

Need better example and context

May be a better example in a specific context will explain this better. The example of your concise code and the original code doesn't convey the abstraction nor any good practices. This is simple example which book might be conveying, which can be understood easily, I have come across many complex code in various books which might have right abstraction, but fails to convey the point.

Reply

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.