public function provideFunctorTestData() { return ['Just' => ['$f' => function ($x) { return $x + 1; }, '$g' => function ($x) { return $x + 5; }, '$x' => Just::of(1)], 'Nothing' => ['$f' => function ($x) { return $x + 1; }, '$g' => function ($x) { return $x + 5; }, '$x' => Nothing::of(1)]]; }
/** * @return Nothing */ function nothing() { return Nothing::of(null); }