We need a new range view views::chunk by that behaves like views::group by but evaluates the binary…
We need a new range view views::chunk by that behaves like views::group by but evaluates the binary…: a task in LegoFlow-SWE (Harbor dataset). Given the input {10, 15, 19, 6, 9, 8} and the predicate std::less{} (so we expect monotonic increasing runs), the existing group by returns: - {10, 15, 19}…
The task
Given the input `{10, 15, 19, 6, 9, 8}` and the predicate `std::less{}` (so we expect monotonic increasing runs), the existing `group_by` returns: - `{10, 15, 19}` (correct: 10→15 true, 15→19 true) - `{6, 9, 8}` (incorrect: 6 is first in group, 6<9 true, 6<8 true, so `8` stays)
Part of Lego-X/LegoFlow-SWE.