Pinq\Iterators\Generators\JoinIterator::innerForeach PHP Method

innerForeach() protected method

protected innerForeach ( $outerKey, $outerValue, array $data, &$count )
$data array
    protected function innerForeach($outerKey, $outerValue, array $data, &$count)
    {
        $projectionFunction = $this->projectionFunction;
        foreach ($this->innerGenerator($outerKey, $outerValue, $data) as $innerKey => $innerValue) {
            (yield $count++ => $projectionFunction($outerValue, $innerValue, $outerKey, $innerKey));
        }
    }