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