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