65001/AbMath

Arity function bug

65001 opened this issue · 2 comments

65001 commented

Describe the bug
Implicit multiplication interferes with the arity of variadic functions.

Current behavior

# Token Arity
0 1 0
1 2 0
2 3 0
3 sum 1
4 2 0
5 * 2

Expected behavior

# Token Arity
0 1 0
1 2 0
2 3 0
3 sum 3
4 2 0
5 * 2
65001 commented

The problem seems to be related to an operator being adjacent to the function such as sum(1,2,3) * 2 and not necessarily implicit multiplication.

65001 commented

There seems to be a workaround, a user can type in (sum(1,2,3))2 instead of sum(1,2,3)2. This works for unknown reasons.