Std.Math.abs
1 declaration
fn
abs: T -> T where T: Ord + Zero + SubThis is a callable function.
What it does
The distance of a value from zero.
An unsigned type is its own distance, which is what makes this correct
rather than merely defined for one.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
