Pinq\ITraversable::join PHP Метод

join() публичный Метод

Matches the values with the supplied values according to the supplied filter then maps the results into as according to the supplied function.
public join ( array | Traversable $values ) : Pinq\Interfaces\IJoiningOnTraversable
$values array | Traversable
Результат Pinq\Interfaces\IJoiningOnTraversable
    public function join($values);

Usage Example

Пример #1
0
 /**
  * @dataProvider theImplementations
  */
 public function testThatExecutionIsDeferred(\Pinq\ITraversable $traversable, array $data)
 {
     $this->assertThatExecutionIsDeferred(function (callable $function) use($traversable) {
         return $traversable->join([])->on($function)->to($function);
     });
     $this->assertThatExecutionIsDeferred(function (callable $function) use($traversable) {
         return $traversable->join([])->onEquality($function, $function)->to($function);
     });
 }
All Usage Examples Of Pinq\ITraversable::join