Skip to content

Commit

Permalink
fixed docs error
Browse files Browse the repository at this point in the history
  • Loading branch information
EntilZha committed Mar 19, 2015
1 parent 3a986a4 commit 14fb813
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions functional/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,7 @@ def fold_left(self, zero_value, f):
'Start:aabcbcdedeffmmnopnop'
:param zero_value: zero value to reduce into
:param f: Two parameter function. First parameter is value to be accumulated into the result. Second parameter
is the current result
:param f: Two parameter function. First parameter is value to be accumulated into the result. Second parameter is the current result
:return: value from folding values with f into zero_value
"""
result = zero_value
Expand All @@ -745,8 +744,7 @@ def fold_right(self, zero_value, f):
'Start:nopnopmmffdedebcbcaa'
:param zero_value: zero value to reduce into
:param f: Two parameter function. First parameter is value to be accumulated into the result. Second parameter
is the current result
:param f: Two parameter function. First parameter is value to be accumulated into the result. Second parameter is the current result
:return: value from folding values with f into zero_value
"""
return self.reverse().fold_left(zero_value, f)
Expand Down

0 comments on commit 14fb813

Please sign in to comment.