|
|
|
|
|
by jackewiehose
1729 days ago
|
|
in C++ I would write for (int i: numbers)
if (i % 2 == 1)
return true;
return false;
find_if() etc. is fine if you already have the right predicate function
at hand but it becomes quite ridiculous with lambda expressions. |
|
https://godbolt.org/z/eebE9eYP6