Fusonic\Linq\Linq::select PHP Method

select() public method

Projects each element into a new form by invoking the selector function.
public select ( callable $func ) : Linq
$func callable A transform function to apply to each element.
return Linq A new Linq object whose elements are the result of invoking the transform function on each element of the original Linq object.
    public function select(callable $func)
    {
        return new Linq(new SelectIterator($this->iterator, $func));
    }