News for hackers. Stuff that matters.
Re:The Word Count Problem by pdonis on Saturday July 28, 2012 @01:07PM (#4305919)
> Now that you've put the thought into my head, I may go back and do that.

Just did it. :-) Factored out a "uniq" function in both versions, so the "pipeline" function is now a single chain of method invocations (with the slicing at the end). Which means it could actually be put in the "if __name__ == '__main__'" stanza, but that seems less readable to me.

There are no comments on this comment yet.