I didn't know about Exercism, thanks for the tip. They seem to be a little rough at the edges, but overall I really like the platform. As for Hamming distance, it can be done in a single line: s1.chars().zip(s2.chars()).filter(|(x, y)| x != y).count() (trivial error checking for unequal length strings omitted).
So far very similar to F#.
why don't u try exercism once?
@@nyxtom Thanks, I also plan to learn and master rust by same...
I didn't know about Exercism, thanks for the tip. They seem to be a little rough at the edges, but overall I really like the platform. As for Hamming distance, it can be done in a single line: s1.chars().zip(s2.chars()).filter(|(x, y)| x != y).count() (trivial error checking for unequal length strings omitted).