I'm currently working around it with open!.
Expected:
let (--) = Belt.Array.range;
let range2D = (~w, ~h) => {
open Array.Infix;
0 -- (h - 1) <#> (i => i * w + 1 -- (i + 1) * w);
};
Actual:
let (--) = Belt.Array.range;
let range2D = (~w, ~h) =>
Array.Infix.(0 -- (h - 1) <#> (i => i * w + 1 -- (i + 1) * w));