Functional Programming in Python and C ++

Is there a good book for functional programming in Python or C ++? I need to master functional programming in these languages.

+5
source share
7 answers

In functional programming, I assume that you mean referential transparency (mostly not global state or side effects), as well as functions like first-class functions, polymorphic types, partial function application, etc.

There is no book I know about that covers functional programming in C ++. You can program without global state and side effects in C ++, and you can pass functions as arguments using function pointers, but you cannot get an application with a partial function or anonymous lambda expressions.

+6
source

Python text processing uses a functional style, and that is what turned me into functional programming. This is also a great Python / programming book in general, and I highly recommend it.

+6
source

MMhh, , , , , , , .

python , . . .

++. , , . , , map, reduce...

++ 0x ( ), .

:

  • ( , )
  • , .

: , , . - SICP Little Schemer, .

+3

++ lambdas/anonymous. , Boost.Lambda ++, ++.

. Haskell, Miranda, Lisp, Scheme, OCaml, Javascript ..

: Python. , .

+1

Python - :

http://www.amk.ca/python/writing/functional

.

, Python, .

++ . ( ) , . , ++ , , , .

0

, , . http://www.ibm.com/developerworks/library/l-prog.html

, - "The Little Schemer", . python.

0
source

For Perl, I can recommend a "Higher Perl Order ".

I don't know what Python or C ++ is.

-1
source

All Articles