Int::abs

Calculate absolute value of an integer.
Note that absolute value of Int::MIN will always cause an overflow which will return Int::MIN.

Type

abs :: Int -> Int

Examples

println$( (-10).abs$() )
println$( Int::MIN.abs$() )