Skip to content

Commit

Permalink
docs: add simple invoke example
Browse files Browse the repository at this point in the history
without this it isn't super clear that the name is a string and it's a member of the object list
  • Loading branch information
iloveitaly committed Feb 1, 2024
1 parent 485e526 commit 615743c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/colls.rst
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ Data manipulation
Calls named method with given arguments for each object in ``objects`` and returns an iterator or a list of results.

For example::

invoke(['abc', 'def', 'b'], 'find', 'b')
# ->[1, -1, 0]


Content tests
-------------
Expand Down

0 comments on commit 615743c

Please sign in to comment.