/** * @dataProvider provider */ function testCurry($d, $e) { $f = f_and(); $this->assertSame($f($d), $e); }
function all_values_are() { return curry2(function ($p, $list) { return is_array($list) && dot(f_and(), map($p), array_values($list)); }, func_get_args()); }