1st Edition

Quick Functional Programming

By David Matuszek Copyright 2023
    146 Pages 1 B/W Illustrations
    by Chapman & Hall

    146 Pages 1 B/W Illustrations
    by Chapman & Hall

    146 Pages 1 B/W Illustrations
    by Chapman & Hall

    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.

    1. What Is Functional Programming? 2. Methods and Functions 3. Higher-Order Functions 4. Functional Interfaces in Java 5. If Expressions 6. Comprehensions 7. Closures 8. Currying 9. Function Composition 10. Optional Values 11. Lists 12. Streams 13. Important Functions 14. Pipelines 15. Summary and Final Examples. Afterword. Index.

    Biography

    David L. Matuszek was Director of the Masters in Computer and Information Technology course at the University of Pennsylvania, USA (2001-2017). With 40 years teaching experience, and 45 years programming experience, David is skilled in both the design of innovative software systems and in teaching others how to master programming languages in an accessible and engaging way.