From 92d79f76aa53ac321aef652e092fb9c8f61f964a Mon Sep 17 00:00:00 2001 From: Joe Jevnik Date: Fri, 15 Jul 2016 14:01:24 -0400 Subject: [PATCH] MAINT: remove unused 'let' function --- zipline/utils/functional.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/zipline/utils/functional.py b/zipline/utils/functional.py index c1e04c03..716e8777 100644 --- a/zipline/utils/functional.py +++ b/zipline/utils/functional.py @@ -333,22 +333,6 @@ with_name = set_attribute('__name__') with_doc = set_attribute('__doc__') -def let(a): - """Box a value to be bound in a for binding. - - Examples - -------- - .. code-block:: python - - [f(y, y) for x in xs for y in let(g(x)) if p(y)] - - Here, ``y`` is available in both the predicate and the expression - of the comprehension. We can see that this allows us to cache the work - of computing ``g(x)`` even within the expression. - """ - return a, - - def foldr(f, seq, default=_no_default): """Fold a function over a sequence with right associativity.