Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5df76c

Browse files
committed
Update Tuple
1 parent d2cae36 commit d5df76c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

advanced/tuple.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# 元组
22

3-
元组(Tuple)表示一些特定类型组合成的**数组**类型。
3+
数组合并了相同类型的对象,而元组(Tuple)合并了不同类型的对象。
4+
5+
元组起源于函数编程语言(如 F#),在这些语言中频繁使用元组。
46

57
## 简单的例子
68

@@ -85,16 +87,11 @@ console.log(xcatliu[2].slice(1));
8587

8688
之前提到过,[如果一个值是联合类型,我们只能访问此联合类型的所有类型里共有的属性或方法。](../basics/union-types.md#访问联合类型的属性或方法)
8789

88-
> 元组的概念[来源于 C#][C# Tuple]。区别是,C# 中的元组是只读的。
89-
9090
## 参考
9191

9292
- [Basic Types # Tuple](http://www.typescriptlang.org/docs/handbook/basic-types.html#tuple)[中文版](https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Basic%20Types.html#元组-tuple)
93-
- [C# Tuple]
9493

9594
---
9695

9796
- [上一章:字符串字面量类型](string-literal-types.md)
9897
- [下一章:枚举](enum.md)
99-
100-
[C# Tuple]: https://msdn.microsoft.com/en-us/library/system.tuple(v=vs.110).aspx

0 commit comments

Comments
 (0)