> Kotlin has lambdas with capturing, anonymous inner classes AND ability to create "functors".
Be aware that “functor” can mean two very different things:
- In the C++ sense, it’s a lambda, like Mike said.
- In the functional programming world, a functor is a generic type that lets you apply a certain function to all its elements and returns a container of the transformed elements (e.g. a list, a map, a tree, …).