通常函数值是唯一的。

但是,函数的定义域(domain)和陪域(codomain)都可以是复杂的集合。

$$f:X\times Y \times Z \rightarrow W \times U \times V$$

  1. 在计算机语言中,就用结构体来支持。也就是可以把想要返回的数据打包在一起以结构体的形式返回。
  2. 另一个办法是:采用地址参数的方式让函数修改调用函数中的多个变量。

You have no rights to post comments