public function zip(iterable $items): self
    {
        $collection = Factory::create($items);

        return $this->map(
            function ($value, $key, $index) use ($collection) {
                return [$value, $collection->atIndex($index)];
            }
        );
    }
public function zip(iterable $items): self
    {
        $collection = Factory::create($items);

        return $this->map(
            function ($value, $key, $index) use ($collection) {
                return [$value, $collection->atIndex($index)];
            }
        );
    }
public function zip ( iterable $ items ) : self { $ collection = Factory :: create ( $ items ) ; return $ this -> map ( function ( $ value , $ key , $ index ) use ( $ collection ) { return [ $ value , $ collection -> atIndex ( $ index ) ] ; } ) ; }
Merge the values items by items and return a new Collection.
Merge the values items by items and return a new Collection .