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

Update Readme.md #6

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Readme.md
Expand Up @@ -288,7 +288,7 @@ sort(sort(sort([2, 1])))
const map = (fn) => (list) => list.map(fn)
const add = (a) => (b) => a + b

# Points-Free list 是显式参数
# Not Points-Free list 是显式参数
const incrementAll = (numbers) => map(add(1))(numbers)

# Points-Free list 是隐式参数
Expand All @@ -315,7 +315,7 @@ const predicate = (a) => a > 2

[示例](https://github.com/shfshanyue/fp-jargon-zh/blob/master/demos/predicate.js)

<div id="contract"></div>
<div id="contracts"></div>

## 契约 (Contracts)
契约保证了函数或者表达式在运行时的行为。当违反契约时,将抛出一个错误。
Expand Down