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