# HOF - Higher-Order Function
A higher-order function is a [[Function]] that take takes one or more [[Procedural Parameter]] and/or returns a [[Function]].
## Examples
### Python
```python
def apply(fct: "procedural parameter", sequence: "in out parameter"):
for i, obj in enumerate(sequence):
sequence[i] = fct(obj)
numbers = ["1", "42", "255"]
apply(int, numbers)
print(numbers)
# [1, 42, 255]
```
In [[Python]], many built-in HOF are [[Decorator|decorators]] used to provide useful features such as [[Memoization]] or [[Dynamic Dispatch]]
---
Bibliography:
- [Higher-order function - wikipedia.org](https://en.wikipedia.org/wiki/Higher-order_function)