The following example should compile:
```
import std.algorithm.comparison : equal;
import std.range : dropExactly;
immutable source = [4, 3, 2, 11, 0, -3, -3, 5, 3, 0];
enum result1 = source.splitWhen!((a,b) => a <= b);
```
It doesn't because ChunkBy implementation is used for splitWhen and swapping refcounter playloads are not supported due to a "fakePureCalloc" call.
Comment #1 by robert.schadek — 2024-12-01T16:40:13Z