• 学习Scala(影印版)
  • 学习Scala(影印版)
21年品牌 40万+商家 超1.5亿件商品

学习Scala(影印版)

正版全新

35.62 6.9折 52 全新

库存2件

上海浦东
认证卖家担保交易快速发货售后保障

作者(美)斯沃茨(Swartz,J.) 著

出版社东南大学出版社

ISBN9787564159207

出版时间2015-08

装帧平装

开本16开

纸张胶版纸

页数236页

定价52元

货号1469677

上书时间2024-03-11

闲暇一卷书的书店

三年老店
已实名 已认证 进店 收藏店铺

   商品详情   

品相描述:全新
商品描述
【书    名】 学习Scala(影印版)
【书    号】 9787564159207
【出 版 社】 东南大学出版社
【作    者】 (美)斯沃茨(Swartz,J.) 著
【出版日期】 2015-08-01
【版    次】 1
【开    本】 16开
【页    码】 236
【定    价】 52.00元

【编辑推荐】 
作者斯沃茨在《学习Scala(影印版)(英文版)》中论证了为什么ScaIa凭借其简洁而具有表达性的语法使其成为想提高水平的Ruby和Python开发者的理想语言,同时Scala的类型安全性和性能保证了它对于任何应用而言都足够稳定和快速。

【内容简介】 
本书全面地介绍Scala这种针对JVM的编程语言,它集成了现代对象模型、函数式编程和优选类型系统的所有优势。本书通过代码示例,向你展示如何即刻高效地利用该语言和生态系统,同时解释为何Scala是开发高可扩展、以数据为中心的应用程序的理想语言。

【目录】 
Preface. 
Part Ⅰ.Core Scala 
1.Getting Started with the Scalable Language 
Installing Scala 
Using the Scala REPL 
Summary 
Exercises 
2.Working with Data: Literals, Values, Variables, and Types 
Values 
Variables 
Naming 
Types 
Numeric Data Types 
Strings 
An Overview of Scala Types 
Tuples 
Summary 
Exercises 
3.Expressions and Conditionals 
Expressions 
Defining Values and Variables with Expressions 
Expression Blocks 
Statements 
If..Else Expression Blocks 
If Expressions 
If—Else Expressions 
Match Expressions 
Matching with Wildcard Patterns 
Matching with Pattern Guards 
Matching Types with Pattern Variables 
Loops 
Iterator Guards 
Nested Iterators 
Value Binding 
While and Do/While Loops 
Summary 
Exercises 
4.Functions 
Procedures 
Functions with Empty Parentheses 
Function Invocation with Expression Blocks 
Recursive Functions 
Nested Functions 
Calling Functions with Named Parameters 
Parameters with Default Values 
Vararg Parameters 
Parameter Groups 
Type Parameters 
Methods and Operators 
Writing Readable Functions 
Summary 
Exercises 
5.First—Class Functions 
Function Types and Values 
Higher—Order Functions 
Function Literals 
Placeholder Syntax 
Partially Applied Functions and Currying 
By—Name Parameters 
Partial Functions 
Invoking Higher—Order Functions with Function Literal Blocks 
Summary 
Exercises 
6.Common Collections 
Lists, Sets, and Maps 
What's in a List? 
The Cons Operator 
List Arithmetic 
Mapping Lists 
Reducing Lists 
Converting Collections 
Java and Scala Collection Compatibility 
Pattern Matching with Collections 
Summary 
Exercises 
7.M0te Collections 
Mutable Collections 
Creating New Mutable Collections 
Creating Mutable Collections from Immutable Ones 
Using Collection Builders 
Arrays 
Seq and Sequences 
Streams 
Monadic Collections 
Option Collections 
Try Collections 
Future Collections 
Summary 
Exercises 
Part Ⅱ.Object—Oriented Scala 
8.Classes 
Defining Classes 
More Class Types 
Abstract Classes 
Anonymous Classes 
More Field and Method Types 
Overloaded Methods 
Apply Methods 
Lazy Values 
Packaging 
Accessing Packaged Classes 
Packaging Syntax 
Privacy Controls 
Privacy Access Modifiers 
Final and Sealed Classes 
Summary 
Exercises 
9.Objects, Case Classes, and Traits 
Objects 
Apply Methods and Companion Objects 
Command—Line Applications with Objects 
Case Classes 
Traits 
Self Types 
Instantiation with Traits 
Importing Instance Members 
Summary 
Break——Configuring Your First Scala Project 
Exercises 
10.Advancefl Typing 
Tuple and Function Value Classes 
Implicit Parameters 
Implicit Classes 
Types 
Type Aliases 
Abstract Types 
Bounded Types 
Type Variance 
Package Objects 
Summary 
Questions 
A.Reserved Words 
Index

【文摘】 
An alternate but now unofflcially deprecated syntax you will see for procedures is to define them without the Unit return type and without an equals sign before the procedure body.With this syntax the example log () method would be written like this: 
scala>def log(d: Double) {println(f"Got value $dth.2f")} 
log: (d: Double)Unit 
As just noted, this syntax is unofficially deprecated by the maintainers of the Scala language.The problem with this syntax is that too many developers accidentally wrote procedures with return values, expecting the return value to be actually returned to the caller.With this procedure syntax, any return value (or Fmal expression) will be discarded.To address this problem, it is recommended that developers stick to regular function defmitions with an equals sign to reduce the possibility that valid return values will be ignored. 
Functions with Empty Parentheses 
An alternate way to defme and invoke an input—less function (one which has no input parameters) is with empty parentheses.You might fmd this style preferable because it clearly distinguishes the function from a value.

—  没有更多了  —

以下为对购买帮助不大的评价

此功能需要访问孔网APP才能使用
暂时不用
打开孔网APP