简介
目录
Preface
1. Why
Shifting Paradigms
Aligning with Language Trends
Ceding Control to the Language/Runtime
Concision
2. Shift
A Common Example
Imperative Processing
Functional Processing
Case Study: Number Classification
Imperative Number Classification
Slightly More Functional Number Classification
Java 8 Number Classifier
Functional Java Number Classifier
Common Building Blocks
Filter
Map
Fold/Reduce
Synonym Suffering
Filter
Map
Fold/Reduce
3. Cede
Iteration to Higher-Order Functions
Closures
Currying and Partial Application
Definitions and Distinctions
In Groovy
In Clojure
Scala
Common Uses
Recursion
Seeing Lists Differently
Streams and Work Reordering
4. Smarter, Not Harder
Memoization
Caching
Adding Memoization
Laziness
Lazy Iterator in Java
Totally Lazy Number Classifier
Lazy Lists in Groovy
Building a Lazy List
Benefits of Laziness
Lazy Field Initialization
5. Evolve
Few Data Structures, Many Operations
Bending the Language Toward the Problem
Rethinking Dispatch
Improving Dispatch with Groovy
Clojure's "Bendable" Language
Clojure Multimethods and a la carte Polymorphism
Operator Overloading
Groovy
Scala
Functional Data Structures
Functional Error Handling
The Either Class
The Option Class
Either Trees and Pattern Matching
6. Advance...
Design Patterns in Functional Languages
Function-Level Reuse
Template Method
Strategy
The Flyweight Design Pattern and Memoization
Factory and Currying
Structural Versus Functional Reuse
Code Reuse Via Structure
7. Practical Thinking
Java 8
Functional Interfaces
Optional
Java 8 Streams
Functional Infrastructure
Architecture
Web Frameworks
Databases
8. Polyglot and Polyparadigm
Combining Functional with Metaprogramming
Mapping Data Types with Metaprogramming
Infinite Streams with Functional Java and GrooW
Consequences of Multiparadigm Languages
Context Versus Composition
Functional Pyramid
Index
- 名称
- 类型
- 大小
光盘服务联系方式: 020-38250260 客服QQ:4006604884
云图客服:
用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问