parity-common icon indicating copy to clipboard operation
parity-common copied to clipboard

uint: add abs_diff

Open webmaster128 opened this issue 2 years ago • 0 comments

Having a abs_diff would be great. It can be the same API as the one from Rust introduced in 1.60.0: https://doc.rust-lang.org/std/primitive.usize.html#method.abs_diff. Would be great it we could make it const, but not sure how tricky that is.

webmaster128 avatar Jun 13 '22 08:06 webmaster128