That is more of a paradigm that is less common in python.
The output API feels completely natural in js/ts
In Python it works the same since Python is also a functional language, the difference being that functional programming is not common in Python