Sometimes I wonder what the hell I might have been thinking while writing code like this1 : 1 2 3 4 5 6 7 def uncurry(f): return lambda t: f(*t) def longest_common_prefix(Sa, Sb): return len(list( takewhile(uncurry(eq), izip(Sa, Sb)))) I bet the tenses are all wrong again. [↩]
Look at me, I know Functional Programming!
Mai 5th, 2008 · 1 Comment
Tags: lang:en · programming · python

![Validate my RSS feed [Valid RSS]](http://shlomme.diotavelli.net/images/valid-rss.png)