From 510cae8b3dc5287c72ae65bf51967f7d1d26bc73 Mon Sep 17 00:00:00 2001 From: "J.J. Tolton" Date: Sat, 3 Jun 2017 20:29:34 -0400 Subject: [PATCH] removed rreduce from compose --- naga/tools.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/naga/tools.py b/naga/tools.py index 7c20bf0..9fb5b0c 100644 --- a/naga/tools.py +++ b/naga/tools.py @@ -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):