Making John Corwin Proud

Posted in development, technology at 12:14 am by wingerz


Here’s some Python I wrote tonight for filtering our entries to generate feeds for Pundit Monitor. I know it’s basic stuff in the FP world, but it makes me happy since I’ve been programming in Java at work for the past few years. Elegance, how I’ve missed you.

def by(f):
  return lambda x: reduce (
    lambda a, b: a and b, 
    map(lambda k: x[k] == f[k], f.keys())
cahouse = {
  "state" : "California",
  "racetype" : "house"
entries = filter (by(cahouse), allentries)


  1. John said,

    November 5, 2006 at 11:36 pm

    Wing, I’m so proud of you! Now try it in a statically typed language. :)

  2. Ben said,

    November 6, 2006 at 12:18 am

    Can you make another post called making “John Corwin Drool” and put up a picture of Lucy Liu?

Leave a Comment