Ejemplo n.º 1
0
 public function testHasPrecurriedVersion()
 {
     $this->assertSame(4, call_user_func(F\C1\add(2), 2));
 }
Ejemplo n.º 2
0
 public function testChain1()
 {
     $this->assertEquals(Maybe::of(5), Maybe::of(3)->chain(function ($three) {
         return Maybe::of(2)->map(F\C1\add($three));
     }));
 }