Which programming language is this?
$doubled = array_map(fn($n) => $n * 2, $nums);
Answer: PHP
array_map with an arrow fn() is PHP 7.4+; the sigils rule out the alternatives.$doubled = array_map(fn($n) => $n * 2, $nums);
Answer: PHP
array_map with an arrow fn() is PHP 7.4+; the sigils rule out the alternatives.