public static function of($value, FantasyLand\Monoid $side = null) { return new static($value, is_null($side) ? S::mempty() : $side); }
public function provideData() { $addOne = function ($x) { return Writer::of($x + 1); }; $addTwo = function ($x) { return Writer::of($x + 2); }; return ['writer 0' => ['$f' => $addOne, '$g' => $addTwo, '$x' => 10]]; }