News for hackers. Stuff that matters.
Re:Don’t Be Scared Of Functional Programming by stevesimmons on Wednesday July 02, 2014 @06:20PM (#7980164)
Except you'd never write it like that in idiomatic Python. Your reduce's repeated list copying/appending/searching kills performance. Instead you would do something like this:

domains = set( email.split('@')[-1] for email in open(path) )

Re:Don’t Be Scared Of Functional Programming by innguest on Wednesday July 02, 2014 @09:31PM (#7980970)
He's pretending python compiles to something sane. FP spoils you with great compilers.