|
Ds\Deque::mapReturns the result of applying a callback to each value 説明
public Ds\Deque Ds\Deque::map(callable
$callback)
Returns the result of applying a パラメータ
戻り値
The result of applying a
例例1 Ds\Deque::map example 上の例の出力は、 たとえば以下のようになります。
Ds\Deque Object
(
[0] => 2
[1] => 4
[2] => 6
)
Ds\Deque Object
(
[0] => 1
[1] => 2
[2] => 3
)
|