All Questions
1 question
1
vote
1
answer
5k
views
How do I use lambda functions in Arduino?
I want to pass a lambda function as an argument to a method. Example:
T reduce(const T initial, const std::function<T(T, T)> acc) {
T value = initial;
for (size_t i = 0; i < S; ++i) {
...