phpstreams\Stream::map PHP Méthode

map() public méthode

Map the values in the stream to another stream.
public map ( callable $mapping ) : Stream
$mapping callable
Résultat Stream a new stream with the variables mapped.
    public function map(callable $mapping)
    {
        return new MappingOperation($this, $mapping);
    }