4 ms·
> But does the syntax really collide? Yes. $a = [ $x => $x * 2 ]; Is this an array mapping the key $x to the value $x * 2, or is this an array mapping th
by jorams 7y ago
> But does the syntax really collide?
Yes.
$a = [ $x => $x * 2 ];
Is this an array mapping the key $x to the value $x * 2, or is this an array mapping the key 0 to a function that doubles its input?