> Write a function that: • takes right and left arguments that are character vectors or scalars of equal length – these represent DNA strings.
> • returns an integer representing the Hamming distance (the number of differences in corresponding positions) between the arguments.
This is trivial. For those that need an additional challenge. Try pretending that T and U are the same letter.
This is also one of those cases where APL tends to be significantly shorter than more popular languages, even when they take inspiration from APL. Try it!
Here's how NOT to do it in APL: {r⊣⍺{r+←⍺≠⍵}¨⍵⊣r←0}