Versions Compared

Key

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


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Removes certain elements from a list.

Output

Status
subtletrue
titlelist

Available since

Status
subtletrue
colourRed
titleneeds lookup




UI Text Box
sizemedium
typeinfo

This function returns a list with of elements in l which a list which are not present in a second list m.

The returned list does not contain repetitions. The order is respected.


Code Block
languagebash
titleOperator
linenumberstrue
list1 EXCEPT list2 #Output: List


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
[1, 2, 2, 3, 3] EXCEPT [2, 5, 6]


This example returns

[1, 3]


Code Block
languagebash
linenumberstrue
["red", "red", "blue", "blue", "green"] EXCEPT ["blue", "yellow"]


This example returns

["red", "green"]


Code Block
languagebash
linenumberstrue
linkedIssues() EXCEPT subtasks()


This example returns a list of all linked issues that are not sub-tasks of the current issue.

To achieve this, the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
list1

Status
subtletrue
titlelist

Any type of text, number or issue list. Learn more about working with lists.
list2

Status
subtletrue
titlelist

Any type of text, number or issue list. Learn more about working with lists.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlelist