Book Image

Learning F# Functional Data Structures and Algorithms

By : Adnan Masood
Book Image

Learning F# Functional Data Structures and Algorithms

By: Adnan Masood

Overview of this book

Table of Contents (21 chapters)
Learning F# Functional Data Structures and Algorithms
Credits
Foreword
Foreword
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Are We There Yet?

 

"More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason."

 
 -- William A. Wulf
 

Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

 
 -- Linus Torvalds

This chapter provides a detailed primer to one of the fundamental functional data structures in F#, that is, sequences. Functional programming and idiomatic expressions are amazing but, until you understand the fundamental constructs and how they work together, you cannot create meaningful expressions. One of the challenges that beginners find while learning functional programming is the trend to promote features instead of solving problems and explaining fundamentals. Some features are promoted to be so clever that the authors stop thinking about the problem and start focusing on the clever features; it is actually quite hard to resist.

We will explore...