mathOnStringList()

This function returns a number list with results of the given calculation performed for each text in the specified list.


Bash
mathOnStringList(textList, mathExpression) #Output: Number list


Examples

Parser expression

Description

Bash
mathOnStringList(["a", "ab", "abc", "abcd", "abcde"], length(%{seed.text}))


This example returns the following number list:

[1, 2, 3, 4, 5]


To achieve this, the following functions are used:

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

textList

text list

Any given text list.

mathExpression

text

A valid math expression.


Output

This function returns a number list


📚 Use cases and examples