Ds\Vector::map

Ds\Vector::map

(PECL ds >= 1.0.0)

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 callback function to each value in the vector.

Parameters

callback
mixed callback ( mixed $value )

A 登录查看完整内容