|
Ds\Vector::mapReturns the result of applying a callback to each value Description
public Ds\Vector Ds\Vector::map(callable
$callback )
Returns the result of applying a Parameters
Return Values
The result of applying a
ExamplesExample #1 Ds\Vector::map example
The above example will output something similar to: Ds\Vector Object ( [0] => 2 [1] => 4 [2] => 6 ) Ds\Vector Object ( [0] => 1 [1] => 2 [2] => 3 ) |