Scalar builtin function not compatible with expressions
The following code is expected to work:
s = (numbers: 1, 2)
print(2*sum(s))
Instead, an error occurs:
Syntax error: None:2:10 --> print(2* *sum(s)) <--
Expected '+' or '-' or 'Number' or STRICTFLOAT or INT or '('
In the same logic the following code also does not work:
b = (bools: true, false)
print(not all(b))
The error is:
Syntax error: None:6:11 --> print(not *all(b)) <--
Expected 'Bool' or BOOL or '('
It is rather a none-feature than a bug. Mixing scalar built-in functions (with some exceptions such as the if-function) is not allowed in the grammar.
Edited by Ivan Kondov