Versions Compared

Key

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


Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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



Page properties
hiddentrue


Short description

Returns a 

Status
subtletrue
titlelist
in l that validate predicate.

Output

Status
subtletrue
titlenumber list




Panel

Supported list types

Table of Contents
exclude(Supported list types).*
stylecircle
typeflat
separatorpipe


Number list

UI Text Box
sizemedium
typeinfo

The function returns a 

Status
subtletrue
titlenumber list
in l that validate predicate.

Argument predicate is a boolean expression, where ^ is used for referencing numeric values in argument l.


Code Block
languagebash
titleSyntax
linenumberstrue
filterByPredicate(number list l, boolean expression predicate) #Output: Number list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
filterByPredicate([1, 2, 3, 4], ^ > 2)


The function returns a

Status
subtletrue
titlenumber list
of values greater than 2 : [3, 4]


Code Block
languagebash
linenumberstrue
filterByPredicate([1, 2, 3, 4], remainder(^, 2) = 0) 


The function returns a

Status
subtletrue
titlenumber list
of even values : [2, 4]



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

Status
subtletrue
titledata type

Parameter description.
<parameter>

Status
subtletrue
titledata type

Parameter description.



UI Expand
titleOutput

The function returns a

Status
subtletrue
titlenumber list



Text list

UI Text Box
sizemedium
typeinfo

Returns a

Status
subtletrue
titletext list
with texts in l that validate predicate. Argument predicate is a boolean expression, where ^% is used for referencing string values in argument l.


Code Block
languagebash
titleSyntax
linenumberstrue
filterByPredicate(string list l, boolean expression predicate) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
filterByPredicate(["book", "rose", "sword"], length(^%) > 4)


The function returns a

Status
subtletrue
titletext list
: ["sword"]


Code Block
languagebash
linenumberstrue
filterByPredicate(["book", "rose", "sword"], ^% in %{00000} OR ^% in %{00001})


The function returns a

Status
subtletrue
titletext list
with those strings in first argument that also appear in issue Summary or Description.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

Status
subtletrue
titledata type

Parameter description.
<parameter>

Status
subtletrue
titledata type

Parameter description.



UI Expand
titleOutput

The function returns a

Status
subtletrue
titletext list