9 lines
235 B
JavaScript
9 lines
235 B
JavaScript
|
function Component() {
|
||
|
// a's mutable range should be the same as x's mutable range,
|
||
|
// since a is captured into x (which gets mutated later)
|
||
|
let a = someObj();
|
||
|
let x = [];
|
||
|
a |> x.push(%);
|
||
|
x |> mutate(%);
|
||
|
return [x, a];
|
||
|
}
|