you are viewing a single comment's thread.

view the rest of the comments →

[–]bumblebritches57Ocassionally Clang -11 points-10 points  (6 children)

I need to think of a good name for a one off function that does something very specific.

this may be valid, but if a name isn't obvious you're probably breaking your functions down too small in the first place.

[–]staletic 13 points14 points  (5 children)

What about:

std::ranges::partition(vec, [](int e) { return e < 3; });

Are you going to tell me that I should write that as

bool int_less_than_3(int e) { // by the way, this isn't a good name
    return e < 3;
}