Chapter 4. Imperative Programming in F#
In this chapter, you will learn how to use control structures, more idiomatic .NET with F#, interfacing with C#, and generics. The following are the topics that we will cover:
- Working with classes
- Control structures
- Operator overloading
- Interoperating with C#
- Extension methods
- Using LINQ in F#
As a developer, we also need to think of exposing functionalities from F# libraries to be used with C# or other .NET languages. In a team, not every member will be using F# and because of that, we will write wrapper functionalities or expose the F# code in a way that's more consumable in C#. And sometimes, mutable code inside of F# is used for performance-oriented programs; just like we discussed in the previous chapter, ...
Get Mastering F# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.