Quick Functional Programming
- Length: 128 pages
- Edition: 1
- Language: English
- Publisher: Chapman and Hall/CRC
- Publication Date: 2023-06-21
- ISBN-10: 1032415312
- ISBN-13: 9781032415314
- Sales Rank: #0 (See Top 100 Books)
Why learn functional programming? Isn’t that some complicated ivory-tower technique used only in obscure languages like Haskell?
In fact, functional programming is actually very simple. It’s also very powerful, as Haskell demonstrates by throwing away all the conventional programming tools and using only functional programming features. But it doesn’t have to be done that way.
Functional programming is a power tool that you can use in addition to all your usual tools, to whatever extent your current mainstream language supports it. Most languages have at least basic support.
In this book we use Python and Java and, as a bonus, Scala. If you prefer another language, there will be minor differences in syntax, but the concepts are the same.
Give functional programming a try. You may be surprised how much a single power tool can help you in your day-to-day programming.
Cover Half Title Title Page Copyright Page Dedication Table of Contents About the Author Preface Chapter 1: What Is Functional Programming? Chapter 2: Methods and Functions 2.1 Methods 2.1.1 Methods in Python 2.1.2 Methods in Java 2.1.3 Methods in Scala 2.2 Function Literals 2.2.1 Function Literals in Python 2.2.2 Function Literals in Java 2.2.3 Function Literals in Scala 2.3 Sorting Examples 2.3.1 Sorting in Python 2.3.2 Sorting in Java 2.3.3 Sorting in Scala Chapter 3: Higher-Order Functions 3.1 Higher-Order Functions in Python 3.2 Higher-Order Functions in Java 3.3 Higher-Order Functions in Scala Chapter 4: Functional Interfaces in Java 4.1 Single Abstract Methods 4.2 Anonymous Inner Classes 4.3 Defining Functional Interfaces 4.4 Method References 4.5 The Other Method Reference 4.6 Provided Functional Interfaces 4.6.1 IntPredicate 4.6.2 Function Composition 4.6.3 Predicates Again 4.6.4 Unary Operators 4.6.5 More Functions and Operators 4.6.6 Suppliers and Consumers Chapter 5: If Expressions 5.1 If Expressions in Python 5.2 If Expressions in Java 5.3 If Expressions in Scala Chapter 6: Comprehensions 6.1 List Comprehensions in Python 6.2 Comprehensions in Java 6.3 For Expressions in Scala 6.4 For Comprehensions in Scala Chapter 7: Closures 7.1 Closures in Python 7.2 Closures in Java 7.3 Closures in Scala 7.4 Closure Example Chapter 8: Currying 8.1 Currying in Python 8.2 Currying in Java 8.3 Currying in Scala Chapter 9: Function Composition 9.1 Function Composition in Python 9.2 Function Composition in Java 9.3 Function Composition in Scala Chapter 10: Optional Values 10.1 Optional in Python 10.2 Optional in Java 10.3 Option in Scala Chapter 11: Lists 11.1 Recursion 11.2 Lists in Python 11.3 Lists in Java 11.4 Lists in Scala Chapter 12: Streams 12.1 Generators in Python 12.2 Streams in Java 12.3 Numeric Streams in Java 12.4 Streams in Scala Chapter 13: Important Functions 13.1 Important Functions in Python 13.2 Important Functions in Java 13.3 Important Functions in Scala 13.4 Additional Functions in Scala Chapter 14: Pipelines 14.1 Pipelines in Python 14.2 Pipelines in Java 14.2.1 Intermediate Operations 14.2.2 Terminal Operations 14.2.3 Collectors 14.2.4 Example 14.3 Pipelines in Scala Chapter 15: Summary and Final Examples 15.1 Examples in Python 15.2 Examples in Java 15.3 Examples in Scala Afterword Index
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.