Skip to content

Commit

Permalink
docs: Update Apply documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 30, 2021
1 parent 0d87d15 commit 51b2494
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/pages/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,11 @@ Signature: ``Collection::append(...$items);``
apply
~~~~~

Execute a callback for each element of the collection without
altering the collection item itself.
Execute callback(s) on each element of the collection.

If the callback does not return `true` then it stops.
Iterates on the collection items regardless of the return value of the callback.

If the callback does not return `true` then it stops applying callbacks on subsequent items.

Interface: `Applyable`_

Expand Down

0 comments on commit 51b2494

Please sign in to comment.