skip to main | skip to sidebar

A self indulgence

"When in doubt, use brute force." -- Ken Thompson

Wednesday, October 25, 2006

Python: Functional programming

I'm trying to get used to functional programming and I must admit, it's kinda fun!

Here's a trivial example using both generators, and built in functions to acheive the same result:

Posted by Pete at 2:41 PM
Labels: programming, python

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Labels

  • programming
  • unix
  • computer science
  • python
  • work
  • networking
  • perl
  • cisco
  • spammers
  • abuse
  • email

Blog Archive

  • ►  2009 (3)
    • ►  February (1)
    • ►  January (2)
  • ►  2008 (5)
    • ►  December (5)
  • ►  2007 (7)
    • ►  December (1)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
    • ►  March (2)
  • ▼  2006 (31)
    • ►  December (1)
    • ►  November (1)
    • ▼  October (2)
      • Python: Functional programming
      • Leslie Lamport
    • ►  September (4)
    • ►  August (1)
    • ►  July (4)
    • ►  April (6)
    • ►  March (9)
    • ►  February (2)
    • ►  January (1)
  • ►  2005 (18)
    • ►  December (2)
    • ►  November (11)
    • ►  October (5)

Websites

  • My static site
  • Mirek's Site of Stuf

Blogs

  • Dan Price (@sun.com)
  • Tim Marsland (@sun.com)
  • Martin Cathrae (@blogspot.com)
  • Joe (@geekswithblogs.net)
  • Kate Gregory (@gregcons.com)

O/S Links

  • OpenBSD
  • OpenBSD Journal
  • OSNews.com
  • OpenSolaris

About Me

My photo
Pete
View my complete profile