Can you show me how you would write it? I don't see how this contributes to the conversation unless you show me how or why
These patterns are commonplace for many years now in many languages.
The intention was to show how declarative code can come from imperative with a 'true' one-liner.