logo
What's New
What's New
  Popular
Popular
  Top Rated
Top Rated
  Search
Search


Search :  

How to Add Link |   Modify Link   |   Login |     Register  |  Getting Rated |  Link to Us |  Feedback Us


Sponsors
FlashAdvisor.com
Web Directory
Custom Offshore Software Development
phpld Hacks
Software Download
Your Site Link




Categories
    3DS MAX
    ASP
    C And C++
    ColdFusion
    Database
    Dreamweaver
    Flash
    HTML
    Java
    JavaScript
    Linux
    Maya
    MS Excel
    MS PowerPoint
    MS Word
    Paint Shop Pro
    Perl and CGI
    Photoshop
    PHP
    Premiere
    Python
    Visual Basic
    Web Hosting
    XML
 

 

Functional programming in Python
  

Home  » Python » Development  

Although users usually think of Python as a procedural and object-oriented language, it actually contains everything you need for a completely functional approach to programming. This article discusses general concepts of functional programming, and illustrates ways of implementing functional techniques in Python. We'd better start with the hardest question: "What is functional programming (FP), anyway?" One answer would be to say that FP is what you do when you program in languages like Lisp, Scheme, Haskell, ML, OCAML, Clean, Mercury, or Erlang (or a few others). That is a safe answer, but not one that clarifies very much. Unfortunately, it is hard to get a consistent opinion on just what FP is, even from functional programmers themselves. A story about elephants and blind men seems apropos here. It is also safe to contrast FP with "imperative programming" (what you do in languages like C, Pascal, C++, Java, Perl, Awk, TCL, and most others, at least for the most part). Personally, I would roughly characterize functional programming as having at least several of the following characteristics. Languages that get called functional make these things easy, and make other things either hard or impossible:

Hits: 422
Rate:   0.0(out of 5)  
Vote : 0   
Submit Date  : 2006-03-29
Submit By  : www-128.ibm
View Tutorial Functional programming in Python
 Add Review
 Report Error
Rating Graph

0.0%
0.0%
0.0%
0.0%
100.0%
 1  2  3  4  5 
Rate This :
More Tutorials by this user

Functional programming in Python, Part 2
 Functional programming in Python, Part 2
Extending Python and Zope in C
 Extending Python and Zope in C
Python: Text processing in Python for beginners
 Python: Text processing in Python for beginners
Charming Python: Parsing with the SimpleParse module
 Charming Python: Parsing with the SimpleParse module
DeveloperWorks: Getting to know Midgard
 DeveloperWorks: Getting to know Midgard
How to use Python's xml_objectify
 How to use Python's xml_objectify
Developing a full-text indexer in Python
 Developing a full-text indexer in Python
Improving the social infrastructure of Python: pydoc and dis
 Improving the social infrastructure of Python: pydoc and distutils modules
Improving the social infrastructure of Python: pydoc and dis
 Improving the social infrastructure of Python: pydoc and distutils modules
An advanced GUI library for Python - PyQT
 An advanced GUI library for Python - PyQT
  
Home | Sitemap | Feedback | Advertise with us
Best viewed in 800x600 resolution with Internet Explorer.
Site Developed and Hosted by EthicSolutions

Flash Tutorials    TemplateAdvisor.com    WebMastersHome.com

    Reseller Hosting    Reseller Hosting Linux