In that case, don't blame abs(), but the fact that you didn't know you could map instead of using a loop. If you had known about map() but not about abs() you could still have writtine a function to map:
if x>=0 return x
else return -x
In that case, don't blame abs(), but the fact that you didn't know you could map instead of using a loop. If you had known about map() but not about abs() you could still have writtine a function to map:
if x>=0 return x
else return -x
Independent Software architect, trainer and coach at Delphino Consultancy (http://www.delphino-consultancy.nl)
Independent Software architect, trainer and coach at Delphino Consultancy (http://www.delphino-consultancy.nl)