public function getNFirst($n)
    {
        $it = new \ArrayIterator();
        $j = 0;
        foreach ($this as $file) {
            if ($j == $n) {
                break;
            }
            $j++;
            $it->append($file);
        }

        $finder = new static();
        $finder->append($it);

        return $finder;
    }
public function getNFirst($n)
    {
        $it = new \ArrayIterator();
        $j = 0;
        foreach ($this as $file) {
            if ($j == $n) {
                break;
            }
            $j++;
            $it->append($file);
        }

        $finder = new static();
        $finder->append($it);

        return $finder;
    }
public function getNFirst ( $ n ) { $ it = new \ ArrayIterator ( ) ; $ j = 0 ; foreach ( $ this as $ file ) { if ( $ j == $ n ) { break ; } $ j ++ ; $ it -> append ( $ file ) ; } $ finder = new static ( ) ; $ finder -> append ( $ it ) ; return $ finder ; }
Get First N Files or Dirs

@param integer $n Umpteenth Number

@return Return a new Finder instance

@see SortableIterator

@api
Get First N Files or Dirs