6 Functions and modules
This chapter covers
- Different ways of declaring functions in F#
- Chaining functions together
- Making flexible functions
- Organizing code
- Moving from scripts to applications
We’re on chapter 6 of a book on a programming language that’s primarily functional in nature, and yet only now are we looking into functions! In this chapter, we’ll learn more about how functions work in F#, and I’ll be throwing a couple of language features and concepts at you that you might not have seen before in other languages, so strap in!
6.1 Functions
Much of what you’ve seen in this book has glossed over function arguments, so this section is designed to clarify it for you. There’s a little reference material–style content here, but it’s backed ...
Get F# in Action 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.