Pinq\ITraversable::append PHP 메소드

append() 공개 메소드

Returns values from the original and supplied values, keys will be reindexed.
public append ( array | Traversable $values ) : pinq\ITraversable
$values array | Traversable The values to append
리턴 pinq\ITraversable
    public function append($values);

Usage Example

예제 #1
0
 /**
  * @dataProvider everything
  */
 public function testThatAppendWithEmptyReturnsSameAsTheOriginalButReindexedKeys(\Pinq\ITraversable $traversable, array $data)
 {
     $appendedWithTraversable = $traversable->append([]);
     $appendedWithArray = $traversable->append([]);
     $appendedWithIterator = $traversable->append(new \ArrayObject([]));
     $this->assertMatches($appendedWithTraversable, array_values($data));
     $this->assertMatches($appendedWithArray, array_values($data));
     $this->assertMatches($appendedWithIterator, array_values($data));
 }
All Usage Examples Of Pinq\ITraversable::append