diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-03-25 11:57:42 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-03-26 10:56:30 +0100 |
commit | 2eaffa5cfb8ad8e5d18ac1ed61b4ae6b976852ee (patch) | |
tree | 032cddb636d94ff6ce8f245becaf7055d9045b5b /doc/concepts/expressions.md | |
parent | d58620bcf328a500b964fd9190f712c96d6a136e (diff) | |
download | justbuild-2eaffa5cfb8ad8e5d18ac1ed61b4ae6b976852ee.tar.gz |
Expression language: add float operations "*" and "+"
Numerical values are used at some places in justbuild: as value for
timeout scaling, as well as by the "range" expression that is used,
e.g., to define repreated test runs. Therefore, improve support
for numerical values by adding basic operations.
Diffstat (limited to 'doc/concepts/expressions.md')
-rw-r--r-- | doc/concepts/expressions.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/concepts/expressions.md b/doc/concepts/expressions.md index dcd567af..192952f4 100644 --- a/doc/concepts/expressions.md +++ b/doc/concepts/expressions.md @@ -259,6 +259,14 @@ those) argument(s) to obtain the final result. - `"++"` The argument has to be a list of lists. The result is the concatenation of those lists. + - `"+"` The argument has to be a list of numbers. The result is + their sum (where the sum of the empty list is, of course, the + neutral element 0). + + - `"*"` The argument has to be a list of numbers. The result + is their product (where the producut of the empty list is, of + course, the neutral element 1). + - `"map_union"` The argument has to be a list of maps. The result is a map containing as keys the union of the keys of the maps in that list. For each key, the value is the value |