<?php function map(?callable $transformer, iterable ... $inputs): iterable { // for now I just care how named parameters work var_dump($inputs); return \array_map($transformer, ...$inputs); } map(transformer: null, inputs: [[1, 2], [3, 4]]);
You have javascript disabled. You will not be able to edit any code.