Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleAvailability

This routine is available since katl-commons 2.5.15 / 2.6.7.

Syntax

...

arrayDiff(arrayName1, arrayName2)

Description

...

Excerpt

Difference between two arrays. Returns the elements from the first array which don't exist in the second array.

Return Type

...

array

Example

...

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".

Example 2

...

Code Block
string[] developers= usersInGroups({"jira-developers"});
string[] administrators = usersInGroups({"jira-administrators"});
return arrayDiff(developers, administrators);

The result is an array which contains only developers that are not also administrators.


See

...

also

 

Filter by label (Content by label)
showLabelsfalse
max100
showSpacefalse
cqllabel = "array_routines"
labelsarray_routines