Skip to content

Commit

Permalink
"Binary" operators are really Infix operators
Browse files Browse the repository at this point in the history
That is, they can take more than two arguments. The operator
appears in betweek all operands.
  • Loading branch information
rocky committed Nov 17, 2024
1 parent e2681a8 commit 56e8271
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mathics/core/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,8 @@ def __init__(self, *args, **kwargs):

class BinaryOperator(Operator):
"""
Class for Builtin Binary Operators, e.g. Plus (+)
Class for Builtin Infix Operators (which includes Binary
operators), e.g. Plus (+).
"""

# Note: grouping must be Python string, not a Symbol.
Expand Down

0 comments on commit 56e8271

Please sign in to comment.