public function testCanBeUsedOnAListWithReduce() { $square = function ($x) { return $x * $x; }; $this->assertSame(1, F\reduce(F\C1\minBy($square), -999999, [3, -5, 4, 1, -2])); }
public function testWorks() { $this->assertSame(16, F\reduce('F\\add', 10, [1, 2, 3])); }