Orchid Win7 v1 <voi### [at] devnull> wrote:
> I'm sure there must be more evil ways of doing this...)
Here's one (probably not the best) way to do it:
return x*(1-2*(x<0));
Not sure how C# handles types, but in C that would return an int.
Thanks for the laughs, btw :) When Haskell isn't the main subject, you're
actually pretty funny ;)
Sam
Post a reply to this message
|