Skip to main content

Functional Programming Aids

  • Chapter
  • First Online:
Programming with Python
  • 13k Accesses

Abstract

The modules available as functional programming aids are dealt with here. The built-in functions for algebra and logic operation are defined as convenient functions in the operator module. ‘Itemgetter’, ‘attrgetter’ and ‘methodcaller’ are available as generic methods. ‘inplace’ operators corresponding to all composite algebraic and logic operations are available as corresponding useful functions. Compact iterators formed around common functions are available in ‘itertools’. Their use is illustrated. The yield construct is for transforming a function into a corresponding generator. Going a step further ‘yield from’ chains generators for multiple sequences. Decorator provides an elegant template for nested suites. Their use is illustrated through examples. A number of readymade decorators and functions in the ‘functools’ module have been explained through illustrative examples.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 99.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 129.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 179.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  • Anton H, Rorres C (2005) Elementary linear algebra. Wiley, New Jeresy

    Google Scholar 

  • van Rossum G, Drake FL Jr (2014) The Python library reference. Python software foundation

    Google Scholar 

  • Zwillinger D (ed) (2003) Standard mathematical tables and formulae. Chapman & Hall/CRC, New York

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to T. R. Padmanabhan .

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer Nature Singapore Pte Ltd.

About this chapter

Cite this chapter

Padmanabhan, T.R. (2016). Functional Programming Aids. In: Programming with Python. Springer, Singapore. https://doi.org/10.1007/978-981-10-3277-6_12

Download citation

  • DOI: https://doi.org/10.1007/978-981-10-3277-6_12

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-10-3276-9

  • Online ISBN: 978-981-10-3277-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics