« my brain hurts | Home | boned »
March 10, 2008
mission accomplished
today at work, instead of this:
for i in [ int(s) for s in list_of_ints_as_strings ] :
i wrote this:
for i in map(int, list_of_ints_as_strings) :
it's a subtle change, very small, and maybe even a step back in efficiency. but it indicates a subtle shift in my thinking brought on by recent meddlings in haskell. before long, i'll be using foldl.
Leave a comment