Re: Absolute
- Posted by "Carl R. White" <cyrek at BIGFOOT.COM> Jun 12, 2000
- 551 views
On Sun, 11 Jun 2000 12:16:50 +1000, Aidan Bindoff <abindoff at ONE.NET.AU> wrote: >I, for one, will only be using the absolute() function [Lucius] suggested >from now on. I'm interested to know if you could suggest any more. The 'sequence-magic' abs() function is: function abs(object x) -- The bit in the outer brackets is normally in the function "sgn()" return x * ( (x>0)-(x<0) ) end function This works for anything you want to throw at it. The downside is that it's 3-4 times slower than the atom-only version when you use it on atoms. Carl - Sequence magic intermediate -- .sig still missing