Minimal reproducible example:
(
$arr := [[], [4, 5]];
$i := 1;
$j := 1;
$arr[$i][$j];
)
It should be 1, but I get no match in excerciser.
$arr[1][1]; and $arr[1][$j] work.
Exploring other possibilities:
(
$arr := [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
$i := 1;
$j := 2;
$x := $arr[$i];
{
"double_variable":$arr[$i][$j],
"one_variable": $arr[$i],
"first_variable": $arr[$i][2],
"second_variable": $arr[1][$j],
"is_equal": $x[$i] = $arr[$i][$j],
"separated": $x[$i]
}
)
results in:
{
"one_variable": [
4,
5,
6
],
"second_variable": 6,
"is_equal": false,
"separated": 5
}
Minimal reproducible example:
It should be
1, but I getno matchin excerciser.$arr[1][1];and$arr[1][$j]work.Exploring other possibilities:
results in: