The One: reuse the same instance instead of creating a new one at every bind.

This commit is contained in:
Crista Lopes
2013-11-28 13:57:56 -08:00
parent cc4182cf57
commit 9a4c833bc9

View File

@@ -9,8 +9,8 @@ class TFTheOne:
self._value = v
def bind(self, func):
result = func(self._value)
return TFTheOne(result)
self._value = func(self._value)
return self
def printme(self):
print self._value,