示例#1
0
 public function testHasPrecurriedVersion()
 {
     $this->assertEquals(Maybe::of('Ax'), call_user_func(F\C1\prop('name'), ['name' => 'Ax', 'age' => 92]));
 }
示例#2
0
 public function testChain2()
 {
     $this->assertEquals(Maybe::of(null), Maybe::of(null)->chain(F\C1\prop('address'))->chain(F\C1\prop('street')));
 }