Skip to content
This repository has been archived by the owner on Jan 31, 2021. It is now read-only.

Commit

Permalink
Version 2.0.0: Allow FF to deconstruct any iterable object, not only …
Browse files Browse the repository at this point in the history
…tuple.
  • Loading branch information
abersheeran committed Jan 19, 2021
1 parent 187a4e3 commit a9a9f67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
assert (1, 2, 3) | F(sum) == 6

assert (1, 2) | FF(lambda x, y: x + y) == 3
assert [1, 2, 3] | FF(lambda x, y, z: x + y + z) == 6

assert range(10) | F(reduce, lambda x, y: x + y) == 45

0 comments on commit a9a9f67

Please sign in to comment.