자료유형 | E-Book |
---|---|
개인저자 | Bolboaca, Alexandru. |
서명/저자사항 | Hands-on functional programming with C++ :an effective guide to writing accelerated functional code using C++17 and C++20 /Alexandru Bolboaca. |
발행사항 | Birmingham : Packt Publishing, Limited, 2019. |
형태사항 | 1 online resource (347 pages) |
소장본 주기 | Added to collection customer.56279.3 |
ISBN | 1789809215 9781789809213 |
일반주기 |
A worked example of imperative versus functional style
|
내용주기 | Cover; Title Page; Copyright and Credits; Dedication; About Packt; Contributors; Table of Contents; Preface; Section 1: Functional Building Blocks in C++; Chapter 1: An Introduction to Functional Programming; Technical requirements; An introduction to functional programming; Functional programming constructs are everywhere; Structured loops versus functional loops; Immutability; OOP versus functional design styles; Composability and removing duplication; Summary; Questions; Chapter 2: Understanding Pure Functions; Technical requirements; What is a pure function?; Pure functions in C++ Pure functions without argumentsPure functions with one or more arguments; Pure functions and immutability; Immutability and passing by reference; Immutability and pointers; Immutability and non-class functions; Immutability and output parameters; Aren't static functions bad practice?; Alternatives to static functions; Pure functions and I/O; Summary; Questions; Chapter 3: Deep Dive into Lambdas; Technical requirements; What is a lambda?; Lambdas in C++; Capturing variables; Capturing variables by value and by reference; Capturing multiple values; Capturing pointer values What capture should we use?Lambdas and pure functions; Lambda immutability and pass by value arguments; Lambda immutability and pass by reference arguments; Lambda immutability and pointer arguments; Lambdas and I/O; Lambda immutability and capturing values; Immutability for values captured by reference; Immutability for pointers captured by value; Immutability for pointers captured by reference; Lambdas and classes; Lambdas as data members; Lambdas as static variables; Converting a static function to a lambda; Lambdas and coupling; Summary; Questions Chapter 4: The Idea of Functional CompositionTechnical requirements; What is functional composition?; Functional composition; Implementing functional composition in C++; Functional composition is not commutative; Complex functional composition; Implementing more compose functions; Decomposing functions with multiple arguments; Incrementing the result of multiplication; Multiplying increments; Reflections on the composition and decomposition of functions; Using functional composition to remove duplication; Generalizing incrementResultOfMultiplication; Generalizing multiplyIncrementedValues |
요약 | Questions; Chapter 5: Partial Application and Currying; Technical requirements; Partial application and currying; Partial application; Partial application in C++; Partial application on class methods; Currying; What is currying?; Currying and partial application; Currying functions with multiple arguments; Removing duplication using partial application and currying; Summary; Questions; Section 2: Design with Functions; Chapter 6: Thinking in Functions - from Data in to Data out; Technical requirements; From data in to data out through functions |
요약 | C++ is one of the most widely used programming languages particularly well suited for low-level programming. The aim of the book is to provide you with the confidence to implement functional programming with C++. By the end of this book, you will have no qualms thinking in functions and writing faster, Cleaner and Functional Production Code. |
일반주제명 | C++ (Computer program language) C++ (Computer program language) |
언어 | 영어 |
기타형태 저록 | Print version:Bolboaca, Alexandru.Hands-On Functional Programming with C++ : An Effective Guide to Writing Accelerated Functional Code Using C++17 and C++20.Birmingham : Packt Publishing, Limited, 짤20199781789807332 |
대출바로가기 | http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&db=nlabk&AN=2181410 |
인쇄
No. | 등록번호 | 청구기호 | 소장처 | 도서상태 | 반납예정일 | 예약 | 서비스 | 매체정보 |
---|---|---|---|---|---|---|---|---|
1 | WE00017192 | 005.133 | 가야대학교/전자책서버(컴퓨터서버)/ | 대출가능 |