src/ResultPaginator.php
public function search($expression)
    {
        // Apply JMESPath expression on each result, but as a flat sequence.
        return flatmap($this, function (Result $result) use ($expression) {
            return (array) $result->search($expression);
        });
    }
public function search($expression)
    {
        // Apply JMESPath expression on each result, but as a flat sequence.
        return flatmap($this, function (Result $result) use ($expression) {
            return (array) $result->search($expression);
        });
    }
public function search ( $ expression ) { // Apply JMESPath expression on each result, but as a flat sequence. return flatmap ( $ this , function ( Result $ result ) use ( $ expression ) { return ( array ) $ result -> search ( $ expression ) ; } ) ; }
Returns an iterator that iterates over the values of applying a JMESPath
search to each result yielded by the iterator as a flat sequence.

@param string $expression JMESPath expression to apply to each result.

@return \Iterator
Returns an iterator that iterates over the values of applying a JMESPath search to each result yielded by the iterator as a flat sequence .