Quick_Functional_Programming.pdf

(1595 KB) Pobierz
Quick Functional
Programming
Why learn functional programming?
Isn’t that some compli-
cated 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 pro-
gramming features. But it doesn’t have to be done that way.
Functional programming is a power tool that you can use in addi-
tion to all your usual tools, to whatever extent your current main-
stream 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.
Quick Functional
Programming
David Matuszek
First edition published 2023
by CRC Press
6000 Broken Sound Parkway NW, Suite 300, Boca Raton, FL 33487-2742
and by CRC Press
4 Park Square, Milton Park, Abingdon, Oxon, OX14 4RN
CRC Press is an imprint of Taylor & Francis Group, LLC
© 2023 David Matuszek
Reasonable efforts have been made to publish reliable data and information, but
the author and publisher cannot assume responsibility for the validity of all
materials or the consequences of their use. The authors and publishers have
attempted to trace the copyright holders of all material reproduced in this
publication and apologize to copyright holders if permission to publish in this
form has not been obtained. If any copyright material has not been acknowledged
please write and let us know so we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be
reprinted, reproduced, transmitted, or utilized in any form by any electronic,
mechanical, or other means, now known or hereafter invented, including
photocopying, microfilming, and recording, or in any information storage or
retrieval system, without written permission from the publishers.
For permission to photocopy or use material electronically from this work,
access www.copyright.com or contact the Copyright Clearance Center, Inc.
(CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. For works
that are not available on CCC please contact mpkbookspermissions@tandf.
co.uk
Trademark notice:
Product or corporate names may be trademarks or registered
trademarks and are used only for identification and explanation without intent
to infringe.
ISBN: 978-1-032-41532-1 (hbk)
ISBN: 978-1-032-41531-4 (pbk)
ISBN: 978-1-003-35854-1 (ebk)
DOI: 10.1201/9781003358541
Typeset in Minion
by SPi Technologies India Pvt Ltd (Straive)
Zgłoś jeśli naruszono regulamin