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