Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function bind(callable $transformation)
 {
     // xs >>= f = concat (map f xs)
     return self::of(f\concat(f\map($transformation, $this)));
 }
Exemplo n.º 2
0
 /**
  * @dataProvider provideData
  */
 public function test_it_should_concat_values_to_array($value, $expected)
 {
     $this->assertEquals($expected, f\concat($value));
 }