Skip to content

Commit

Permalink
removed rreduce from compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jjtolton committed Jun 4, 2017
1 parent 2ec7bd8 commit 510cae8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions naga/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,7 @@ def compose(fns, x=None):
if x is None:
return partial(compose, fns)

return rreduce(fn=lambda a, b: b(a),
seq=fns,
default=x)
return reduce(lambda a, b: b(a), fns, x)


def comp(*fns):
Expand Down

0 comments on commit 510cae8

Please sign in to comment.