Utility/ArrayObjectA.php
public function map(callable $callback) {
		$that = clone $this;
		foreach ($that->getIterator() as $index => $item) {
			$that->offsetSet($index, $callback($item));
		}
		return $that;
	}
public function map(callable $callback) {
		$that = clone $this;
		foreach ($that->getIterator() as $index => $item) {
			$that->offsetSet($index, $callback($item));
		}
		return $that;
	}
public function map ( callable $ callback ) { $ that = clone $ this ; foreach ( $ that -> getIterator ( ) as $ index => $ item ) { $ that -> offsetSet ( $ index , $ callback ( $ item ) ) ; } return $ that ; }
Apply callback to each element of array

@param callable $callback
@return \ArrayObjectA
Apply callback to each element of array