TArray::FindByPredicate doesn’t explicitly define what it accepts, and uses templates to accept any callable type that returns something truthy and accepts an array item as an argument.
You’re probably looking for TFunctionRef (if your function only needs a reference to an outer function, like a typical search predicate), or TFunction (if your function needs the instance to outlive the caller).
Wow thanks for the reply!
I looked into tfunction and tfunctionptr but I couldn’t find enough doc to work out how to use them with the C11 style anonymous function thingies?
Could you show an example? Sorry ^^;