Zhanyong Wan wrote:

> "Jeffrey R. Lewis" wrote:
>
> > Jan Skibinski wrote:
> >
> > > On Thu, 1 Jun 2000, Jeffrey R. Lewis wrote:
> > >
> > > > No so, of course.  (- x) means `negate x'.  Bummer.  What an unpleasant bit of
> > > > asymmetry!
> > >
> > >         How about ((-) x) ?
> >
> > That, regrettably, is the wrong function.  That function is \y -> x - y.  I wanted
> > \y -> y - x.
>
> How about (+ -x) ?

Ah.. OK, that's reasonable enough.  I retract my complaint as being too trivial... I
should know better than to grumble too early in the morning ;-)

BTW, `subtract' doesn't really help, since it's also asymmetrical - there's no
corresponding `add'.  I had a piece of code where one case was adding x, and the other
was subtracting it.  I was simply grumbling that I couldn't write the two cases in a
nice way symmetrically.

--Jeff


Reply via email to