Skip to content

Commit af38383

Browse files
committed
README fix
1 parent dcb8082 commit af38383

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Function for reduction of iterable collection.
276276
use function Smoren\Sequence\Functions\reduce;
277277

278278
$input = [1, 2, 3, 4, 5];
279-
$result = filter($input, static function($carry, $item) {
279+
$result = reduce($input, static function($carry, $item) {
280280
return $carry + $item;
281281
}, 0);
282282
var_dump($result);

0 commit comments

Comments
 (0)