@@ -2,6 +2,8 @@
|
||||
|
||||
## `getStrindexnum(value)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回字符串下标的个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -20,6 +22,8 @@ return getStrindexnum(arr);
|
||||
|
||||
## `getstrindexs(value)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回数组类型,存储参数Value的所有的字符串下标
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -38,6 +42,8 @@ return getstrindexs(arr);
|
||||
|
||||
## `getintindexs(value)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回数组类型,存储数组Value的所有的数字下标
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -56,6 +62,8 @@ return getintindexs(arr);
|
||||
|
||||
## `getAllIndexs(value)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回数组类型,存储数组Value的所有下标
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -74,6 +82,8 @@ return getAllIndexs(arr);
|
||||
|
||||
## `length(value)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回字符串、二进制流或者数组或者Matrix的行长度。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -91,6 +101,8 @@ return length(arr); // 输出:2
|
||||
|
||||
## `sortTableByField(value, field, sortdir)`
|
||||
|
||||
声明:function
|
||||
|
||||
对一个表类型的数组Value用字段名Field排序,排序方向由sortdir决定,如果省略sortdir参数或者设置sortdir为1,正序排序,否则逆序排序。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -122,6 +134,8 @@ return arr;
|
||||
|
||||
## `filterIn(r, v, field, b_return_sub_result=true)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回指定列的值在过滤集内的子结果集或者下标列表。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -211,6 +225,8 @@ return filterIn(array(1, -5, 10, 2, 10, 14, -5), array(2, 3, 10), nil);
|
||||
|
||||
## `filterNotIn(r, v, field, b_return_sub_result=true)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回指定列的值不在过滤集内的子结果集或者下标列表。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -278,6 +294,8 @@ return filterNotIn(array(1, -5, 10, 2, 10, 14, -5), array(2, 3, 10), nil);
|
||||
|
||||
## `sortArray(value, sortdir)`
|
||||
|
||||
声明:function
|
||||
|
||||
对一个一维数组进行排序,方向为sortdir;如果省略sortdir参数,默认为1,正序排序;设置为0时,逆序排序。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -298,6 +316,8 @@ return arr;
|
||||
|
||||
## `reIndex(data, index_info1, index_info2, index_info_n)`
|
||||
|
||||
声明:function
|
||||
|
||||
修改数组下标
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -360,11 +380,13 @@ return a;
|
||||
|
||||
## `arrayToFm(value, sample_value)`
|
||||
|
||||
声明:function
|
||||
|
||||
将数组转换为 FMArray,并按样例值确定单元格类型。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------------- | ----- | ------------------------------------------------------------------------------------------------ |
|
||||
| `value` | array | 要转换的数字数组 |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `value` | array | 要转换的数字数组 |
|
||||
| `sample_value` | any | 指定 fmarray 单元格类型的样例;类型取决于样例自身:`0` 整型、`0.0` 浮点、`0L` 64位整型。类型不符时强制转换。样例也可是其它数值(如 5、5.5、5L) |
|
||||
|
||||
返回:fmarray。转换后的 fmarray 矩阵。
|
||||
|
||||
Reference in New Issue
Block a user