Using std.algorithm.iteration to Calculate Hamming Distance

Samir samir at aol.com
Sun Jun 23 14:49:01 UTC 2019


On Sunday, 23 June 2019 at 13:29:25 UTC, KnightMare wrote:
> zip( "hello world", "Hello World" ).map!"a[0] != a[1]".sum

Excellent!  Thank you!


More information about the Digitalmars-d-learn mailing list