Given two strings with the same length, we check how many chars on the same positions are different. For example: ABCD and ABBD should return 1. Here is a link to a gist with tests, to have a better understanding of what I'm building.Here is my solution:object Hamming {  def compute(str1: String, str2: String):Int = {    if (str1.length != str2.length)      throw new IllegalArgumentException(Strings have different length)    (0 to str1.length - 1).filter(i => str1(i) != str2(i)).size  }}
Count chars difference between two strings
strings;scala;edit distance