Learning Functional Programming in Scala (Học lập trình hàm với ngôn ngữ Scala) - Alvin Alexander
Tài liệu học lập trình hàm bằng ngôn ngữ Scala, bao gồm các khái niệm từ cơ bản đến nâng cao.
正在生成预览...
Learning Functional Programming in Scala Alvin Alexander A logical, step by step approach to learning functional programming Copyright Learning Functional Programming in Scala Copyright 2017 Alvin J. Alexander All rights reserved. No part of this book may be reproduced without prior written permission from the author. Disclaimer: This book is presented solely for educational purposes, and it’s also a work in progress. While best efforts have been used in preparing this book, the author makes no representations or warranties of any kind and assume no liabilities of any kind with respect to the accuracy or completeness of the contents, and specifically disclaim any implied warranties of merchantability or fitness of use for a particular purpose. The author shall not be held liable or responsible to any person or entity with respect to any loss or incidental or consequential damages caused, or alleged to have been caused, directly or indirectly, by the information or programs contained herein. Any use of this information is at your own risk. The advice and strategies contained herein may not be suitable for your situation. Version 0.1.1, published May 15, 2017 (The cover photo was taken on the Dalton Highway in Alaska, somewhere between Fairbanks and Prudhoe Bay.) Contents 1 Changelog 1 2 Preface 3 3 Introduction (or, Why I Wrote This Book) 5 4 Who This Book is For 11 5 Goals 15 6 Question Everything 23 7 Rules for Programming in this Book 33 8 One Rule for Reading this Book 39 9 What is “Functional Programming”? 41 10 What is This Lambda You Speak Of ? 55 i ii CONTENTS 11 The Benefits of Functional Programming 73 12 Disadvantages of Functional Programming 99 13 The “Great FP Terminology Barrier” 123 14 Pure Functions 131 15 Grandma’s Cookies (and Pure Functions) 141 16 Benefits of Pure Functions 153 17 Pure Functions and I/O 163 18 Pure Function Signatures Tell All 173 19 Functional Programming as Algebra 181 20 A Not
… Tải file gốc để đọc toàn bộ tài liệu.
- 文档名称
- Learning Functional Programming in Scala (Học lập trình hàm với ngôn ngữ Scala) - Alvin Alexander
- 作者(文档中)
- Alvin Alexander
- 内容
- Cuốn sách này giới thiệu lập trình hàm trong Scala bằng cách tiếp cận từng bước, giải thích các khái niệm cốt lõi như hàm thuần khiết, đệ quy, và cách sử dụng các cấu trúc của Scala để viết mã hàm. Mục tiêu là giúp người đọc hiểu và áp dụng tư duy lập trình hàm hiệu quả.
- 目录
- Contents
- 1 Change log
- 2 Preface
- 3 Introduction
- 4 Who This Book is For (or, Why I Wrote This Book)
- 5 Goals
- 6 Question Every thing
- 7 Rules for Programming in this Book
- 8 One Rule for Reading this Book
- 9 What is “Functional Programming”?
- 10 What is This Lambda You Speak Of?
- 11 The Benefits of Functional Programming
- 12 Dis advantages of Functional Programming
- 13 The“Great FPTerminology Barrier”
- 14 Pure Functions
- 15 Grandma’s Cookies (and Pure Functions)
- 16 Benefits of Pure Functions
- 17 Pure Functions and I/O
- 18 Pure Function Signatures Tell All
- 19 Functional Programming as Algebra
- 20 A Note About Expression-Oriented Programming
- 21 Functional Programming is Like Unix Pipelines163
- 22 Functions Are Variables, Too
- 23 Using Methods As If They Were Functions
- 24 How to Write Functions That Take Functions as Input Parameters
- 25 How to Write a ‘map’ Function
- 26 How to Use By-Name Parameters
- 27 Functions Can Have Multiple Parameter Groups
- 28 Partially-Applied Functions (and Currying)
- 29 Recursion: Introduction
- 30 Recursion: Motivation
- 31 Recursion: Let’s Look at Lists
- 32 Recursion: How to Write a ‘sum’ Function
- 33 Recursion: How Recursive Function Calls Work
- 34 Visualizing the Recursive sum Function
- 35 Recursion: A Conversation Between Two Developers
- 36 Recursion: Thinking Recursively
- 37 JVMStacks andStack Frames
- 38 AVisual Look at Stacks and Frames
- 39 Tail-Recursive Algorithms
- 40 A First Look at “State”
- 41 A Functional Game (With a Little Bit of State)
- 42 A Quick Review of Case Classes
- 43 Update as You Copy, Don’t Mutate
- 44 A Quick Review of for Expressions
- 45 How to Write a Class That Can Be Use dina for Expression
- 46 Creating a Sequence Class to be Used in a for Comprehension
- 47 Making Sequence Work in a Simple for Loop
- 48 How To Make Sequence Work as a Single Generator in a for Expression
- 49 Enabling Filtering in a for Expression
- 50 How to Enable the Use of Multiple Generators in a for Expression
- 51 A Summary of the for Expression Lessons
- 52 Pure Functions Tell No Lies
- 53 Functional Error Handling (Option, Try, or Either)
- 54 EmbraceTheIdioms!
- 55 What to Think When You See That Opening Curly Brace
- A Explaining Scala’s val Function Syntax
- B for expression translation examples
- 页数
- 619 页
- 上传者
- lienhejb
常见问题
Làm sao để tải tài liệu này về?
Tài liệu “Learning Functional Programming in Scala (Học lập trình hàm với ngôn ngữ Scala) - Alvin Alexander” có giá 5.000đ. Bạn nạp tiền vào ví qua PayOS, sau đó bấm Tải xuống để mua và tải file gốc về máy.
Tài liệu dài bao nhiêu trang?
Tài liệu gồm 619 trang. Bạn có thể xem trước online trước khi tải.
Tôi có thể xem trước trước khi tải không?
Có. Bạn xem trước tài liệu ngay trên trang này bằng trình đọc online (một số trang đầu), rồi quyết định tải về.

评论 (0)
暂无评论。快来抢沙发吧!