Esempio n. 1
0
 public function test_curry3_function()
 {
     $string = 'brian:scaturro';
     $curried = curry3('strstr');
     $curried = $curried($string);
     $curried = $curried(':');
     $this->assertEquals('brian', $curried(true));
 }
Esempio n. 2
0
function dot()
{
    return curry3(function ($x, $y, $z) {
        return $x($y($z));
    }, func_get_args());
}