Skip to content

Commit

Permalink
docs: Update documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 30, 2020
1 parent d8a82a5 commit 77debe9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/pages/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,15 @@ Signature: ``Collection::every(callable $callback);``
->every($callback)
->current(); // true
Collection::fromIterable(range(0, 10))
->append(21)
->every($callback)
->current(); // false
Collection::fromIterable([])
->every($callback)
->current(); // true
explode
~~~~~~~

Expand Down Expand Up @@ -1434,8 +1443,8 @@ Signature: ``Collection::scanLeft(callable $callback, $initial = null);``
->normalize(); // [64 ,16 ,8 ,2]
Collection::empty()
->scanLeft($callback, 3)
->normalize(); // [3]
->scanLeft($callback, 3); // [0 => 3]
scanLeft1
~~~~~~~~~
Expand Down

0 comments on commit 77debe9

Please sign in to comment.