filmov
tv
Higher Order Functions | Python | Passing functions as parameters to other functions

Показать описание
A higher order function is a function that either takes in a function as a parameter or returns a function. It is first important to understand functions as just objects that can be assigned to different variables and passed to other functions as parameters.
`fx_repeater` is a simple higher order function in #python which simply calls the function that it takes as its parameter. There is a lot more we can do with higher order functions, can you think of any other use cases?
#computerscience #programming
`fx_repeater` is a simple higher order function in #python which simply calls the function that it takes as its parameter. There is a lot more we can do with higher order functions, can you think of any other use cases?
#computerscience #programming