expreduce icon indicating copy to clipboard operation
expreduce copied to clipboard

Need to handle Flat definitions correctly

Open corywalker opened this issue 9 years ago • 0 comments

In[14]:= SetAttributes[foo, {Flat, Listable, NumericFunction, OneIdentity, Orderless}]

In[20]:= foo[x, y] := c

In[21]:= foo[x, y, z]

Out[21]= foo[c, z]

In[25]:= ClearAttributes[foo, {Flat, Listable, NumericFunction, OneIdentity, Orderless}]

In[28]:= ClearAll[foo]

In[31]:= foo[x, y] := c

In[32]:= foo[x, y, z]

Out[32]= foo[x, y, z]

corywalker avatar Nov 11 '16 04:11 corywalker