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