Info |
---|
|
This routine is available since SIL Engineā¢ 2.5.15 / 2.6. Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | arrayDiff(arrayName1, arrayName2) | Package | array | Alias | |
...
...
Description
Excerpt |
---|
|
Difference between two arrays. Returns the elements from the first array that do not exist in the second array. |
Difference between two arrays. Returns the elements from the first array that do not exist in the second array.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
arrayName1 | Array | Yes | First array. | arrayName2 | Array | Yes | Second array. | |
Return Type
arrayArray
...
Examples
Example 1
Code Block |
---|
string[] array1 = {"a", "b", "c"};
string[] array2 = {"c", "d"};
return arrayDiff(array1, array2); |
The result will be an array containing elements "a" and "b".
...
Code Block |
---|
string[] developers= usersInGroups({"jira -developers"});
string[] administrators = usersInGroups({"jira-administrators"});
return arrayDiff (developers, administrators );
|
The result is an array that contains only developers that are not also administrators.
Note |
---|
If the array types are incompatible, the routine returns error. |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 10025 |
---|
showSpace | false |
---|
cql | label = "array_routines" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|