More cleanups on #09

This commit is contained in:
Crista Lopes
2013-11-26 21:07:42 -08:00
parent c40f147473
commit e0cf163926

View File

@@ -12,8 +12,8 @@ class TFTheOne:
result = func(self._value)
return TFTheOne(result)
def printm(monad):
print monad._value,
def printme(self):
print self._value,
#
# The functions
@@ -61,5 +61,5 @@ def top25_freqs(word_freqs):
#
# The main function
#
printm(TFTheOne(sys.argv[1]).bind(read_file).bind(filter_chars).bind(normalize).bind(scan).bind(remove_stop_words).bind(frequencies).bind(sort).bind(top25_freqs))
TFTheOne(sys.argv[1]).bind(read_file).bind(filter_chars).bind(normalize).bind(scan).bind(remove_stop_words).bind(frequencies).bind(sort).bind(top25_freqs).printme()