Skip to main content

Immutability and Mutation

  • Chapter
  • First Online:
Stylish F#
  • 581 Accesses

Abstract

In this chapter we look at the importance of immutable style coding. We list some of the most common coding patterns where, in C-like languages, one used to have to resort to using mutable values and looping. We show how these can be re-expressed in immutable style.

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 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Kit Eason

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Eason, K. (2018). Immutability and Mutation. In: Stylish F#. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4000-7_5

Download citation

Publish with us

Policies and ethics