Skip to content

Commit

Permalink
Rewrite doc for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 16, 2021
1 parent a6666bd commit 573cd26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jaraco/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ def compose(*funcs):
Compose any number of unary functions into a single unary function.
>>> import textwrap
>>> stripped = str.strip(textwrap.dedent(compose.__doc__))
>>> compose(str.strip, textwrap.dedent)(compose.__doc__) == stripped
>>> expected = str.strip(textwrap.dedent(compose.__doc__))
>>> strip_and_dedent = compose(str.strip, textwrap.dedent)
>>> strip_and_dedent(compose.__doc__) == expected
True
Compose also allows the innermost function to take arbitrary arguments.
Expand Down

0 comments on commit 573cd26

Please sign in to comment.