pair

语法

pair(a, b)a:b

详情

返回一个数据对。

参数

ab 必须是标量。

返回值

数据对标量,类型同 a/b

例子

1:3+1;
// output: 2:4

1:3<0:6;
// output: 0 : 1