Skip to content
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

Fix a link in ch3 #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions ch3.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ var immutableState = Object.freeze({

换句话说,函数只是两种数值之间的关系:输入和输出。尽管每个输入都只会有一个输出,但不同的输入却可以有相同的输出。下图展示了一个合法的从 `x` 到 `y` 的函数关系;

<img src="images/function-sets.gif" />(http://www.mathsisfun.com/sets/function.html)
<img src="images/function-sets.gif" />(<http://www.mathsisfun.com/sets/function.html>

相反,下面这张图表展示的就*不是*一种函数关系,因为输入值 `5` 指向了多个输出:

<img src="images/relation-not-function.gif" />(http://www.mathsisfun.com/sets/function.html)
<img src="images/relation-not-function.gif" />(<http://www.mathsisfun.com/sets/function.html>

函数可以描述为一个集合,这个集合里的内容是 (输入, 输出) 对:`[(1,2), (3,6), (5,10)]`(看起来这个函数是把输入值加倍)。

Expand Down