Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: