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 the list  in inverted order.

Output

Status
subtletrue
titlelist

Available since

Status
subtletrue
colourBlue
title2.5.0

Panel

Supported list types

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


Number list

UI Text Box
sizemedium
typeinfo

This function returns the  inverts the order of a given number list  in inverted order.


Code Block
languagebash
titleSyntax
linenumberstrue
invertList(number list lnumberList) #Output: Number list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
invertList([1, 2, 3])


This example returns the following number list:

[3, 2, 1]



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxnumberList

Status
subtletrue
titledata typenumber list

Any given number listParameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber list



Text list

UI Text Box
sizemedium
typeinfo

This function returns the string list in inverted orderVariant for text lists.


Code Block
languagebash
titleSyntax
linenumberstrue
invertList(string list ltextList) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
invertList(["first", "second", "third"])


This example returns the following text list:

["third", "second", "first"]



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxtextList

Status
subtletrue
titledata typetext list

Any given text listParameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_invertlist" and space = currentSpace()


Page properties
hiddentrue
id1


Parser function cloud
Map(question)
Notes

Workaround

Code Block
languagebash
let list = [11,7,3,2,5];
let pos = list.map(e=>list.length-list.indexOf(e)-1);
pos.flatMap(p=> list[p])

The list pos is a inverted list of the indexes of the original list.




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

Inverts the order of a given list.

Output

Status
subtletrue
titlelist

Available since

Status
subtletrue
colourBlue
title2.5.0

Label