Skip to content

Commit a707920

Browse files
Corrected some terms. Now all lists are called "列表" and all arrays are called "数组". Besides, add extra contents to explain "active pattern".
1 parent 84484a8 commit a707920

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zh-cn/fsharp.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ printfn "%d" xRef.Value // 10
4545
xRef.Value <- 11
4646
printfn "%d" xRef.Value // 11
4747
48-
let a = [ref 0; ref 1] // 装有可变元素的数组
48+
let a = [ref 0; ref 1] // 装有可变元素的列表
4949
a[0].Value <- 2
5050
5151
// ------ 列表Lists ------
@@ -415,6 +415,7 @@ module ActivePatternExamples =
415415
416416
// F# 中,有一种被称为“主动模式”的特殊模式匹配
417417
// 它可以在模式匹配中动态解析或检测模式(pattern)。
418+
// 译者注:译者个人倾向于把此所谓“主动模式”理解为,自定义某个数据类型在接受模式匹配时,会返回哪些情况
418419
419420
// 主动匹配的语法形似 "banana clips" (译者注:确实不知道banana clips是啥意思)
420421

0 commit comments

Comments
 (0)