Is there a name for expressions that have only a single type of operator?

42 Views Asked by At

For example

a op b op c op d op e 

Here a,b..,e are different inputs. op is the same operator used repeatedly.


Some more context: My audience is software engineers. op is associative.

I am looking for a good name to use in an interface that needs to store expressions like the following

a AND b AND c AND d ...
a OR b OR c OR d  .... 

I would like to represent this expression with the following object:

{
   operator: AND
   inputs: [a, b ,c ,d]
}

I am looking for a good name to use while referring to the type of this object.

Is it a repeated operator expression or a an expression with a single type of operator or something else? I thought the mathematics community may have a good name for it.