================
----------------
topperc wrote:
I think we can do something like.
```
return std::adjacent_find(Order, [](PartialMappingIdx LHS, PartialMappingIdx RHS) {
return RHS != LHS + 1;
}) == Order.end();
```
https://github.com/llvm/llvm-project/pull/229314