DEV Community

Discussion on: Daily Challenge #243 - Redacted!

Collapse
 
mxb profile image
mxb

Implementation in Frink

same[redacted, original] :=
{
  Xval = char["X"]
  for x = zip[stringToBytes[redacted],stringToBytes[original]]
    if (x@0 != x@1) and (x@0 != Xval)
      return false
  return true
}