« 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

About this Entry

This page contains a single entry by sainttoad published on March 10, 2008 6:25 PM.

my brain hurts was the previous entry in this blog.

boned is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.