Skip to content

add languages field in scala3-book. #2663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion _zh-cn/overviews/scala3-book/ca-context-bounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
title: 上下文绑定
type: section
description: This page demonstrates Context Bounds in Scala 3.
language: zh-cn
num: 61
previous-page: types-type-classes
previous-page: ca-given-using-clauses
next-page: ca-given-imports

partof: scala3-book
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 上下文抽象
type: chapter
description: This chapter provides an introduction to the Scala 3 concept of Contextual Abstractions.
language: zh-cn
num: 58
previous-page: types-others
next-page: ca-given-using-clauses
Expand Down
7 changes: 4 additions & 3 deletions _zh-cn/overviews/scala3-book/ca-extension-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
title: 扩展方法
type: section
description: This page demonstrates how Extension Methods work in Scala 3.
num: 63
previous-page: ca-given-imports
next-page: ca-type-classes
language: zh-cn
num: 59
previous-page: ca-contextual-abstractions-intro
next-page: ca-given-using-clauses

partof: scala3-book
overview-name: "Scala 3 — Book"
Expand Down
3 changes: 2 additions & 1 deletion _zh-cn/overviews/scala3-book/ca-given-imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
title: Given 导入
type: section
description: This page demonstrates how 'given' import statements work in Scala 3.
language: zh-cn
num: 62
previous-page: ca-context-bounds
next-page: ca-extension-methods
next-page: ca-type-classes

partof: scala3-book
overview-name: "Scala 3 — Book"
Expand Down
7 changes: 4 additions & 3 deletions _zh-cn/overviews/scala3-book/ca-given-using-clauses.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
title: Given 实例和 Using 语句
type: section
description: This page demonstrates how to use 'given' instances and 'using' clauses in Scala 3.
num: 59
previous-page: ca-contextual-abstractions-intro
next-page: types-type-classes
language: zh-cn
num: 60
previous-page: ca-extension-methods
next-page: ca-context-bounds

partof: scala3-book
overview-name: "Scala 3 — Book"
Expand Down
3 changes: 2 additions & 1 deletion _zh-cn/overviews/scala3-book/ca-implicit-conversions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: 隐式转换
type: section
description: This page demonstrates how to implement Implicit Conversions in Scala 3.
num: 66
language: zh-cn
num: 65
previous-page: ca-multiversal-equality
next-page: ca-summary

Expand Down
3 changes: 2 additions & 1 deletion _zh-cn/overviews/scala3-book/ca-multiversal-equality.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: 多元相等性
type: section
description: This page demonstrates how to implement Multiversal Equality in Scala 3.
num: 65
language: zh-cn
num: 64
previous-page: ca-type-classes
next-page: ca-implicit-conversions

Expand Down
3 changes: 2 additions & 1 deletion _zh-cn/overviews/scala3-book/ca-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: 总结
type: section
description: This page provides a summary of the Contextual Abstractions lessons.
num: 67
language: zh-cn
num: 66
previous-page: ca-implicit-conversions
next-page: concurrency

Expand Down
5 changes: 3 additions & 2 deletions _zh-cn/overviews/scala3-book/ca-type-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
title: 实现类型类
type: section
description: This page demonstrates how to create and use type classes in Scala 3.
num: 64
previous-page: ca-extension-methods
language: zh-cn
num: 63
previous-page: ca-given-imports
next-page: ca-multiversal-equality

partof: scala3-book
Expand Down
3 changes: 3 additions & 0 deletions _zh-cn/overviews/scala3-book/collections-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 集合类型
type: section
description: This page introduces the common Scala 3 collections types and some of their methods.
language: zh-cn
num: 37
previous-page: collections-intro
next-page: collections-methods
Expand Down Expand Up @@ -371,7 +372,9 @@ val people = ArrayBuffer(

```scala
val nums = ArrayBuffer(1, 2, 3) // ArrayBuffer(1, 2, 3)
language: zh-cn
nums += 4 // ArrayBuffer(1, 2, 3, 4)
language: zh-cn
nums ++= List(5, 6) // ArrayBuffer(1, 2, 3, 4, 5, 6)
```

Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/collections-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Scala 集合
type: chapter
description: This page provides and introduction to the common collections classes and their methods in Scala 3.
language: zh-cn
num: 36
previous-page: packaging-imports
next-page: collections-classes
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/collections-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 集合方法
type: section
description: This page demonstrates the common methods on the Scala 3 collections classes.
language: zh-cn
num: 38
previous-page: collections-classes
next-page: collections-summary
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/collections-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 总结
type: section
description: This page provides a summary of the Collections chapter.
language: zh-cn
num: 39
previous-page: collections-methods
next-page: fp-intro
Expand Down
3 changes: 2 additions & 1 deletion _zh-cn/overviews/scala3-book/concurrency.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: 并发
type: chapter
description: This page discusses how Scala concurrency works, with an emphasis on Scala Futures.
num: 68
language: zh-cn
num: 67
previous-page: ca-summary
next-page: scala-tools

Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/control-structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 控制结构
type: chapter
description: This page provides an introduction to Scala's control structures, including if/then/else, 'for' loops, 'for' expressions, 'match' expressions, try/catch/finally, and 'while' loops.
language: zh-cn
num: 18
previous-page: first-look-at-types
next-page: domain-modeling-intro
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/domain-modeling-fp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 函数式领域建模
type: section
description: This chapter provides an introduction to FP domain modeling with Scala 3.
language: zh-cn
num: 22
previous-page: domain-modeling-oop
next-page: methods-intro
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/domain-modeling-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 领域建模
type: chapter
description: This chapter provides an introduction to domain modeling in Scala 3.
language: zh-cn
num: 19
previous-page: control-structures
next-page: domain-modeling-tools
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/domain-modeling-oop.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: OOP 领域建模
type: section
description: This chapter provides an introduction to OOP domain modeling with Scala 3.
language: zh-cn
num: 21
previous-page: domain-modeling-tools
next-page: domain-modeling-fp
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/domain-modeling-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 工具
type: section
description: This chapter provides an introduction to the available domain modeling tools in Scala 3, including classes, traits, enums, and more.
language: zh-cn
num: 20
previous-page: domain-modeling-intro
next-page: domain-modeling-oop
Expand Down
2 changes: 1 addition & 1 deletion _zh-cn/overviews/scala3-book/first-look-at-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 类型初探
type: chapter
description: This page provides a brief introduction to Scala's built-in data types, including Int, Double, String, Long, Any, AnyRef, Nothing, and Null.
language: zh-cn
num: 17
previous-page: taste-summary
next-page: control-structures
Expand All @@ -13,7 +14,6 @@ permalink: "/zh-cn/scala3/book/:title.html"
---



## 所有值都有一个类型

在 Scala 中,所有值都有一个类型,包括数值和函数。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 函数式错误处理
type: section
description: This section provides an introduction to functional error handling in Scala 3.
language: zh-cn
num: 45
previous-page: fp-functions-are-values
next-page: fp-summary
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fp-functions-are-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 函数是值
type: section
description: This section looks at the use of functions as values in functional programming.
language: zh-cn
num: 44
previous-page: fp-pure-functions
next-page: fp-functional-error-handling
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fp-immutable-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 不可变值
type: section
description: This section looks at the use of immutable values in functional programming.
language: zh-cn
num: 42
previous-page: fp-what-is-fp
next-page: fp-pure-functions
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fp-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 函数式编程
type: chapter
description: This chapter provides an introduction to functional programming in Scala 3.
language: zh-cn
num: 40
previous-page: collections-summary
next-page: fp-what-is-fp
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fp-pure-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 纯函数
type: section
description: This section looks at the use of pure functions in functional programming.
language: zh-cn
num: 43
previous-page: fp-immutable-values
next-page: fp-functions-are-values
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fp-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 总结
type: section
description: This section summarizes the previous functional programming sections.
language: zh-cn
num: 46
previous-page: fp-functional-error-handling
next-page: types-introduction
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fp-what-is-fp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 什么是函数式编程?
type: section
description: This section provides an answer to the question, what is functional programming?
language: zh-cn
num: 41
previous-page: fp-intro
next-page: fp-immutable-values
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fun-anonymous-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 匿名函数
type: section
description: This page shows how to use anonymous functions in Scala, including examples with the List class 'map' and 'filter' functions.
language: zh-cn
num: 28
previous-page: fun-intro
next-page: fun-function-variables
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fun-eta-expansion.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Eta 扩展
type: section
description: This page discusses Eta Expansion, the Scala technology that automatically and transparently converts methods into functions.
language: zh-cn
num: 30
previous-page: fun-function-variables
next-page: fun-hofs
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fun-function-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 函数变量
type: section
description: This page shows how to use anonymous functions in Scala, including examples with the List class 'map' and 'filter' functions.
language: zh-cn
num: 29
previous-page: fun-anonymous-functions
next-page: fun-eta-expansion
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fun-hofs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 高阶函数
type: section
description: This page demonstrates how to create and use higher-order functions in Scala.
language: zh-cn
num: 31
previous-page: fun-eta-expansion
next-page: fun-write-map-function
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fun-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 函数
type: chapter
description: This chapter looks at all topics related to functions in Scala 3.
language: zh-cn
num: 27
previous-page: methods-summary
next-page: fun-anonymous-functions
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fun-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 总结
type: section
description: This page shows how to use anonymous functions in Scala, including examples with the List class 'map' and 'filter' functions.
language: zh-cn
num: 34
previous-page: fun-write-method-returns-function
next-page: packaging-imports
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/fun-write-map-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 自定义 map 函数
type: section
description: This page demonstrates how to create and use higher-order functions in Scala.
language: zh-cn
num: 32
previous-page: fun-hofs
next-page: fun-write-method-returns-function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 创建可以返回函数的方法
type: section
description: This page demonstrates how to create and use higher-order functions in Scala.
language: zh-cn
num: 33
previous-page: fun-write-map-function
next-page: fun-summary
Expand Down
3 changes: 2 additions & 1 deletion _zh-cn/overviews/scala3-book/interacting-with-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: 与 Java 交互
type: chapter
description: This page demonstrates how Scala code can interact with Java, and how Java code can interact with Scala code.
num: 72
language: zh-cn
num: 71
previous-page: tools-worksheets
next-page: scala-for-java-devs

Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 导言
type: chapter
description: This page begins the overview documentation of the Scala 3 language.
language: zh-cn
num: 1
previous-page:
next-page: scala-features
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/methods-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 方法
type: chapter
description: This section introduces methods in Scala 3.
language: zh-cn
num: 23
previous-page: domain-modeling-fp
next-page: methods-most
Expand Down
2 changes: 1 addition & 1 deletion _zh-cn/overviews/scala3-book/methods-main-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: main 方法
type: section
description: This page describes how 'main' methods and the '@main' annotation work in Scala 3.
language: zh-cn
num: 25
previous-page: methods-most
next-page: methods-summary
Expand All @@ -13,7 +14,6 @@ permalink: "/zh-cn/scala3/book/:title.html"
---



Scala 3 提供了一种定义可以从命令行调用的程序的新方法:在方法中添加 `@main` 注释会将其变成可执行程序的入口点:

```scala
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/methods-most.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 方法特性
type: section
description: This section introduces Scala 3 methods, including main methods, extension methods, and more.
language: zh-cn
num: 24
previous-page: methods-intro
next-page: methods-main-methods
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/methods-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 总结
type: section
description: This section summarizes the previous sections on Scala 3 methods.
language: zh-cn
num: 26
previous-page: methods-main-methods
next-page: fun-intro
Expand Down
1 change: 1 addition & 0 deletions _zh-cn/overviews/scala3-book/packaging-imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 打包和导入
type: chapter
description: A discussion of using packages and imports to organize your code, build related modules of code, control scope, and help prevent namespace collisions.
language: zh-cn
num: 35
previous-page: fun-summary
next-page: collections-intro
Expand Down
Loading