Slow on the uptake

I don’t know why it took me years to figure this out… 🙂

I just never tried this:

a = [1,2,3] d = { 1 : 'one', 2 : 'two', 3 : 'three' } map(d.get, a) ['one', 'two', 'three']

Shouldn’t this be in the python tutorial in the Functional Programming Tools? I’m a big fan of data driven vs. pure code manipulation of basic data structures.

I “get it” now.

This leads me to a better understanding of Lisp as well. The Lisp people have a love for their neat little functions that seem to do solve all problems via lists. This is the same thing that the Smalltalk people feel about their amazing Collections library.

Now, I know I haven’t blogged in a while and nobody cares about that, but I’m holding back the temptation to talk about this talk with Eric at Jack’s about Haskell.

This entry was posted in General. Bookmark the permalink.

Leave a Reply

Your email address will not be published.