function f_and() { return curry1(function ($x) { return foldr(l_and(), true, $x); }, func_get_args()); }
/** * @dataProvider provider */ function testCurry($x, $y, $e) { $f = l_and($y); $this->assertSame($f($x), $e); }