I was looking at some word count code and thought a more functional approach would be better and more fun to code.
Python, 1 line
lengths = map(lambda word: len(word), open("foo.txt","r").readline().split())
This method was used for its simplicity.
An even better approach is to simply do this:
--JamesMills / prologic
Actually I'm stupid :) Just: