Skip to main content

Lambda Expressions

  • Chapter
Accelerated C# 2008
  • 386 Accesses

Abstract

Most of the new features of C# 3.0 open up a world of expressive functional programming to the C# programmer. Functional programming, in its pure form, is a programming methodology built on top of immutable variables (sometimes called symbols), functions that can produce other functions, and recursion, just to name a few of its foundations. Some prominent functional programming languages include Lisp, Haskell, F#,1 and Scheme.2 However, functional programming does not require a pure functional language and one can use and implement functional programming disciplines in traditionally imperative languages like the C-based languages (including C#). The new C# 3.0 features transform the language into a more expressive hybrid language where both imperative and functional programming techniques can be utilized in harmony. Lambda expressions are arguably the biggest piece of this functional programming pie.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight 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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. F# is an exciting new functional programming language for the.NET Framework. For more information, I invite you to read Robert Pickering’s Foundations of F# (Berkeley, CA: Apress, 2007).

    Google Scholar 

  2. One of the languages that I use often is C++. Those of you who are familiar with metaprogramming in C++ are definitely familiar with functional programming techniques. If you use C++ and you’re curious about metaprogramming, I invite you to check out David Abrahams’ and Aleksey Gurtovoy’s excellent book C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond (Boston, MA: Addison-Wesley Professional, 2005).

    Google Scholar 

Download references

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Weldon W. Nash, III

About this chapter

Cite this chapter

(2007). Lambda Expressions. In: Accelerated C# 2008. Apress. https://doi.org/10.1007/978-1-4302-0338-4_15

Download citation

Publish with us

Policies and ethics