Roger Hale
Sun, 17 Apr 2005 02:56:15 -0700
John Williams wrote:
Good point. Another one is: how does the meta_operator determine the "identity value" for user-defined operators?
Does it have to? The definition of the identity value---BTW, I like the term "neutral value" better because identity also is a relation between two values---is that $x my_infix_op $neutral == $x.
One set of cases that doesn't seem to have come up in discussion:
(1, 3, 2) >>-<< (83, 84, 81, 80, 85)
Should this give
(-82, -81, -79, -80, -85)
(-82, -81, -79, 80, 85)
$n - ($a + $b) == ($n - $a) - $b
$neutral - ($a + $b) == $a + $b == ($neutral - $a) + $b
Best regards Roger