News for hackers. Stuff that matters.
Re:The Value in Go’s Simplicity by pcwalton on Tuesday November 19, 2019 @03:04PM (#21577638)
This is a sum of absolute differences, so in Rust:

    let satd = d.iter().cloned().map(abs).sum();
As an added bonus, there's no undefined behavior!

There are no comments on this comment yet.