phpstreams\Stream::map PHP Method

map() public method

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