What is the point of demonstrating the power an elegance with an example that will (hopefully!) never appear in any real world code? Better to show how the language is still powerful and elegant when taking into account the edge cases and common optimizations.
Writing elegant non-real-world code is much easier (in any language!) than writing real code.
Writing elegant non-real-world code is much easier (in any language!) than writing real code.